HTML DOM AnimationEvent
❮ เหตุการณ์ DOM ❮ วัตถุกิจกรรม
วัตถุแอนิเมชั่นเหตุการณ์
เหตุการณ์ที่เกิดขึ้นเมื่อแอนิเมชั่น CSS ทำงาน เป็นของอ็อบเจกต์ AnimationEvent
คุณสมบัติและวิธีการของ 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 |
คุณสมบัติและวิธีการที่สืบทอดมา
AnimationEvent สืบทอดคุณสมบัติและเมธอดทั้งหมดจาก:
ประเภทงาน
ประเภทเหตุการณ์เหล่านี้เป็นของ AnimationEvent Object:
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 |
❮ เหตุการณ์ DOM ❮ วัตถุกิจกรรม