The animationend
event is fired when a CSS Animation has completed. If the animation aborts before reaching completion, such as if the element is removed from the DOM or the animation is removed from the element, the animationend
event is not fired.
Bubbles | Yes |
---|---|
Cancelable | No |
Interface | AnimationEvent |
Event handler property | onanimationend |
The original target for this event is the Element
that had the animation applied. You can listen for this event on the Window
interface to handle it in the capture or bubbling phases. For full details on this event please see the page on HTMLElement: animationend.