HTML DOM AnimationEvent

AnimationEvent object

Events that occur during the execution of CSS animations belong to the AnimationEvent object.

Animation event properties and methods

Property/Method Beskrivning
animationName Return the name of the animation.
elapsedTime Return the number of seconds the animation has run.
pseudoElement Return the name of the pseudo-element of the animation.

Inheriterade egenskaper och metoder

AnimationEvent ärver alla egenskaper och metoder från detta objekt:

Event-objekt

Händelsetyp

Dessa händelsetyper tillhör AnimationEvent-objektet:

Händelse Beskrivning
animationend Detta händelse sker när CSS-animationen slutförs.
animationiteration Detta händelse sker när CSS-animationen upprepas.
animationstart Detta händelse sker när CSS-animationen börjar.