HTML DOM AnimationEvent
AnimationEvent object
Events that occur while CSS animations are running belong to the AnimationEvent object.
Properties and methods of Animation event
Property/Method | Description |
---|---|
animationName | Returns the name of the animation. |
elapsedTime | Returns the number of seconds the animation has run. |
pseudoElement | Returns the name of the pseudo-element of the animation. |
Inherited Properties and Methods
The AnimationEvent inherits all properties and methods from the following object:
Event Type
These event types belong to the AnimationEvent object:
Event | Description |
---|---|
animationend | This event occurs when the CSS animation ends. |
animationiteration | This event occurs when the CSS animation repeats. |
animationstart | This event occurs when the CSS animation starts. |