Answer the question
In order to leave comments, you need to log in
How to animate class substitution with jquery?
Task. When I click, I change the attribute (change the class). The new class gives the width change. How can I make it animate smoothly. The bottom line is not to change the width through animate, but simply replace the class
Answer the question
In order to leave comments, you need to log in
https://jsfiddle.net/soledar10/5xt2pLfd/
https://jsfiddle.net/soledar10/64Lvvn7m/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question