+ 6
How to reset a CSS animation using JavaScript?
I have a function in JavaScript which writes into innerHTML but it only animates the first time it writes. As far as I know, animationEnd is triggered when an animation is completed in css. Is there a way to restart the animation through my JavaScript function?
2 ответов
+ 14
Maybe it help you:
https://css-tricks.com/restart-css-animation/
In this resource you will found your answer.
+ 3
Thank you very much, it worked!