On 21/09/2009, at 18:24, Simon Fraser wrote:

>
> This code should work. One reason you might not be seeing an  
> transition
> is that animating 'left' forces the browser to do a layout, and
> painting,
> for every frame, and this can be slow. As someone else suggested,
> animating
> -webkit-transform should be a lot smoother.

Ok, thanks. Let's see if I got it right :-)

I have 2 absolutely-positioned divs side-by-side, one falls off- 
screen, either to the left of the screen or to the right, and the  
other one fills the screen, and I want to slide them in the x  
direction so that the one that was off-screen replaces the one that  
was filling the screen.

If I do a transition of the "left" property I trigger multiple  
redraws, but, instead, if I do an [ please your answer here ] it won't  
so the sliding effect will be smoother.

I guess that, after the animation, I'll need still a last redraw to  
"undo" the [ effect ] and move the things to the right, proper  
"left"s, isn't it ?

:-)

Thanks (in advance) !

-- 
Jorge.

--~--~---------~--~----~------------~-------~--~----~
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