This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.
The AnimationPlaybackEvent interface of the Web Animations API represents animation events.
As animations play, they report changes to their playState through animation events.
AnimationPlaybackEvent()Constructs a new AnimationPlaybackEvent object instance.
AnimationPlaybackEvent.currentTime Read only
The current time of the animation that generated the event.
AnimationPlaybackEvent.timelineTime Read only
The time value of the timeline of the animation that generated the event.
| Specification |
|---|
| Web Animations> # the-animationplaybackevent-interface> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
AnimationPlaybackEvent |
84 | 84 | 63 | 70 | 13.1 | 84 | 63 | 60 | 13.4 | 14.0 | 84 | 13.4 |
AnimationPlaybackEvent |
84 | 84 | 63 | 70 | 13.1 | 84 | 63 | 60 | 13.4 | 14.0 | 84 | 13.4 |
currentTime |
84 | 84 | 63 | 70 | 13.1 | 84 | 63 | 60 | 13.4 | 14.0 | 84 | 13.4 |
timelineTime |
84 | 84 | 63 | 70 | 13.1 | 84 | 63 | 60 | 13.4 | 14.0 | 84 | 13.4 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent