1

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.

1
  • please post the code here Commented Aug 24, 2013 at 11:53

1 Answer 1

3

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.

http://jsfiddle.net/MhJ2Y/3/

A solution to this could be getting & setting the width to a fixed value via jQuery on document load.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.