Evento de animación HTML DOM
❮ Eventos DOM ❮ Objetos de eventos
El objeto AnimationEvent
Los eventos que ocurren cuando se ejecuta una animación CSS pertenecen al objeto AnimationEvent.
Propiedades y métodos de 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 |
Propiedades y métodos heredados
AnimationEvent hereda todas las propiedades y métodos de:
Tipos de eventos
Estos tipos de eventos pertenecen al objeto 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 |
❮ Eventos DOM ❮ Objetos de eventos