Hoạt ảnh HTML DOMSự kiện
❮ Sự kiện DOM ❮ Đối tượng sự kiện
Đối tượng AnimationEvent
Đối tượng AnimationEvent xử lý các sự kiện xảy ra khi hoạt ảnh CSS chạy.
Sự kiện hoạt hình
Event | Occurs When |
---|---|
animationend | A CSS animation has completed |
animationiteration | A CSS animation is repeated |
animationstart | A CSS animation has started |
Thuộc tính sự kiện hoạt hình
Property | Returns |
---|---|
animationName | The name of an animation |
elapsedTime | The number of seconds an animation has been running |
pseudoElement | The name of the pseudo-element of the animation |
Thuộc tính và phương thức kế thừa
AnimationEvent kế thừa tất cả các thuộc tính và phương thức từ: