HTML DOM AnimationEvent

AnimationEvent-object

Gebeurtenissen die optreden tijdens het draaien van CSS-animationen behoren tot het AnimationEvent-object.

Eigenschappen en methoden van AnimationEvent

Eigenschap/Methode Description
animationName Teruggeven de naam van de animatie.
elapsedTime Teruggeven het aantal seconden dat de animatie heeft gelopen.
pseudoElement Teruggeven de naam van de pseudo-element van de animatie.

Inherited properties and methods

The AnimationEvent inherits all properties and methods from this object:

Event object

Event type

These event types belong to the AnimationEvent object:

Event Description
animationend This event occurs when the CSS animation is completed.
animationiteration This event occurs when the CSS animation is repeated.
animationstart This event occurs when the CSS animation starts.