I have this fiddle.According to this fiddle when the class='hide' is added into any span,it should be animate,however it is not working well.I want to animate the span when a class='hide' is added.It should animate while changing the width.
-
please post the code herePatrick Evans– Patrick Evans2013-08-24 11:53:22 +00:00Commented Aug 24, 2013 at 11:53
Add a comment
|
1 Answer
It is because you are defining width: auto as one of the frames of the animation. CSS animations mostly only work with fixed values.
Try setting width: 100px for example and check it out.
A solution to this could be getting & setting the width to a fixed value via jQuery on document load.