Acara Animasi DOM HTML
Objek AnimationEvent
Peristiwa yang terjadi saat animasi CSS berjalan, termasuk dalam Objek AnimationEvent.
Properti dan Metode 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 |
Properti dan Metode yang Diwarisi
AnimationEvent mewarisi semua properti dan metode dari:
Jenis Acara
Jenis acara ini milik Objek 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 |