HTML DOM AnimationEvent
AnimationEvent 对象
CSS 动画运行时发生的事件属于 AnimationEvent 对象。
Animation事件属性和方法
属性/方法 | Description |
---|---|
animationName | 返回动画的名称。 |
elapsedTime | 返回动画已运行的秒数。 |
pseudoElement | 返回动画的伪元素的名称。 |
Inherited Properties and Methods
The AnimationEvent inherits all properties and methods from the following object:
Event Type
These event types belong to the AnimationEvent object:
Event | Description |
---|---|
animationend | This event occurs when the CSS animation is completed. |
animationiteration | This event occurs when the CSS animation is repeated. |
animationstart | This event occurs when the CSS animation starts. |