animationend Event in JavaScript
animationend Event in JavaScript
The animationend event is used to occur when CSS animation has completed. Three events occur when a CSS animation plays. These are:-
- animationstart i.e, when the CSS animation has started
- animationiteration i.e, when the CSS animation is repeated
- animationend i.e, when the CSS animation has completed
Syntax:-
Its syntax is:- object.addEventListener("webkitAnimationEnd", myFunction) OR object.addEventListener("animationend", myFunction)