animationstart Event in JavaScript
animationstart Event in JavaScript
The animationstart event is used to occur when CSS animation has just started. 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("webkitAnimationStart", myFunction) OR object.addEventListener("animationstart", myFunction)