webkit-transition for "top" and "bottom" properties

Posted by zorglub76 on Stack Overflow See other posts from Stack Overflow or by zorglub76
Published on 2010-06-16T13:18:16Z Indexed on 2010/06/16 13:22 UTC
Read the original article Hit count: 249

Filed under:
|
|

I'd like to make a css animation where a div (centered on a screen using top and bottom properties) expands by setting top and bottom to 20px.

Is it possible? When I try to make it happen with:

-webkit-transition-property: top, bottom;
-webkit-transition-duration: 0.5s;

animation is not performed. Am I doing something wrong, or is it not supposed to work with these properties?

P.S. I'm doing this for a Titanium desktop application, so only webkit matters...

© Stack Overflow or respective owner

Related posts about css

Related posts about animation