Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
38
rated 0 times [  43] [ 5]  / answers: 1 / hits: 29326  / 13 Years ago, sun, november 20, 2011, 12:00:00

I have the -webkit-transition-duration property set on a div, whose height is set by another class. When I use jQuery to toggle the class, it the transition does something funky.



It goes all the way up, and then is set to the proper height instead of just moving from 50px height to automatic height which is what I expect it to do. What's the fix for this?



Here is a demo: http://jsfiddle.net/XcFxQ/1/


More From » jquery

 Answers
2

This works:



http://jsfiddle.net/Eric/XcFxQ/2/



Although the height is not strictly auto. It manually sets the height in order to make it animate.


[#89006] Friday, November 18, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tyreese

Total Points: 739
Total Questions: 95
Total Answers: 98

Location: Belize
Member since Mon, Jun 20, 2022
2 Years ago
;