HTML DOM AnimationEvent
❮ Sự kiện DOM ❮ Đối tượng sự kiện
Đối tượng AnimationEvent
Các sự kiện xảy ra khi hoạt ảnh CSS chạy, thuộc về Đối tượng AnimationEvent.
Thuộc tính và phương thức 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 |
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ừ:
Các loại sự kiện
Các loại sự kiện này thuộc về Đối tượng 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 |
❮ Sự kiện DOM ❮ Đối tượng sự kiện