HTML DOM AnimationEvent
❮ Wydarzenia DOM ❮ Obiekty zdarzeń
Obiekt AnimationEvent
Zdarzenia występujące podczas uruchamiania animacji CSS należą do obiektu AnimationEvent.
Właściwości i metody zdarzenia animacji
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 |
Dziedziczone właściwości i metody
AnimationEvent dziedziczy wszystkie właściwości i metody z:
Rodzaje wydarzeń
Te typy zdarzeń należą do obiektu 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 |
❮ Wydarzenia DOM ❮ Obiekty zdarzeń