Evento de Animação HTML DOM
❮ Eventos DOM ❮ Objetos de evento
O objeto AnimationEvent
Os eventos que ocorrem quando uma animação CSS é executada pertencem ao Objeto AnimationEvent.
Propriedades e métodos de eventos de animação
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 |
Propriedades e métodos herdados
O AnimationEvent herda todas as propriedades e métodos de:
Tipos de eventos
Esses tipos de eventos pertencem ao 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 evento