Simon Fraser wrote:
> On Sep 21, 2009, at 10:34 AM, Sean Gilligan wrote:
>
>   
>> I  wanted to use % rather than px for toStart, but for some reason  
>> that
>> wouldn't work, thus the use of window.innerWidth.
>>     
>
> Did you file a bug? https://bugreporter.apple.com.
>
> This should work, though.
>   


I didn't file a bug, I wasn't sure whether it was a bug or a feature.  
The transitions proved to be very sensitive to the CSS used.  I  can't 
remember the details now, but the overall CSS has to be sufficient for 
WebKit to actually calculate the width.  ( Some of the techniques I  
used for debugging are here 
http://code.google.com/p/iui/wiki/SlideCSSTransitionsNotes )


> In an earlier message I said that if you are using transitions
> on -webkit-transform, then you can use any of the transform
> functions just fine.
>
> You only need to stick to the 3d variants if you are animating
> something by hand, in JavaScript.
>   

I misunderstood and thought you meant *starting* the animation from 
JavaScript.  Sorry for the misunderstanding.


> Be aware that calling offsetLeft can be very expensive. It forces the
> browser to do an entire layout pass. The setTimeout() trick is more
> efficient.
>   


I'll leave it, then.  Thanks!

-- Sean


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to