Answer the question
In order to leave comments, you need to log in
How to run the same css animation?
How to run the same css animation on click? Those. the animation should break and start over. Now it works like this: there are two classes with the same animation and they just change on click depending on the flag. If you just remove the class and immediately add it, then the animation just continues to run without returning to the beginning.
Link to jsfiddle
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question