AnimationEvent
Represents the animation event object, inherited from CustomEvent, used to describe the state changes of the animation in its life cycle, such as start, end, etc.
The event object contains information such as the type and name of the animation.
Instance property
detail
Represents some basic information of the animation to which the event belongs.
animation-type: The type of the animation. If it is a keyframe animation, this value iskeyframe-animation; if it is a transition animation, this value istransition-animation.animation-name: The name of the animation. If it is a keyframe animation, it is the name of@keyframesin CSS; if it is a transition animation, it is the name oftransition-propertyin CSS.new_animator: The default value istrue.
AnimationEvent type
During the animation execution process, if the animation node is uninstalled and destroyed, the animationcancel and transitioncancel events on the node will not be triggered.
animationstart
Indicates the start of keyframe animation playback.
animationend
Indicates the end of keyframe animation playback.
animationcancel
Indicates that the keyframe animation playback is canceled.
animationiteration
Indicates the number of keyframe animation playback iterations.
transitionstart
Indicates the start of the transition animation playback.
transitionend
Indicates the end of the transition animation playback.
transitioncancel
Indicates that the transition animation playback is canceled.
Compatibility
LCD tables only load in the browser