How do I use CSS transformations to slide a div on screen?
Posted
by Colen
on Stack Overflow
See other posts from Stack Overflow
or by Colen
Published on 2010-06-06T19:19:12Z
Indexed on
2010/06/06
19:22 UTC
Read the original article
Hit count: 301
Hi,
My web page has two divs on it, A and B. Div A is visible, Div B is hidden.
When the user clicks a link in div A, I want to "slide" div A off screen (leaving via the left edge), and slide div B on screen (entering via the right edge).
I've found that jquery animations are very slow on the ipad, so I want to use the webkit CSS animations instead, which I believe are rendered in hardware. How do I do this?
© Stack Overflow or respective owner