Evento di animazione HTML DOM
L'oggetto AnimationEvent
Gli eventi che si verificano durante l'esecuzione di un'animazione CSS appartengono all'oggetto AnimationEvent.
Proprietà e metodi di AnimationEvent
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 |
Proprietà e metodi ereditati
AnimationEvent eredita tutte le proprietà e i metodi da:
Tipi di eventi
Questi tipi di eventi appartengono all'oggetto AnimationEvent:
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 |