The AnimationEvent
THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML DOM AnimationEvent

❮ DOM Events ❮ Event Objects


The AnimationEvent Object

Events that occur when a CSS animation runs, belongs to the AnimationEvent Object.


AnimationEvent Properties and Methods

Property/Method Description
animationName Returns the name of the animation
elapsedTime Returns the number of seconds an animation has been running
pseudoElement Returns the name of the pseudo-element of the animation

Inherited Properties and Methods

The AnimationEvent inherits all the properties and methods from:

The Event Object


Event Types

These event types belongs to the AnimationEvent Object:

Event Description
animationend The event occurs when a CSS animation has completed
animationiteration The event occurs when a CSS animation is repeated
animationstart The event occurs when a CSS animation has started

❮ DOM Events ❮ Event Objects