This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The AnimationPlaybackEvent interface of the Web Animations API represents animation events.
As animations play, they report changes to their playState
through animation events.
Constructor
AnimationPlaybackEvent.AnimationPlaybackEvent()
- Constructs a new
AnimationPlaybackEvent
object instance.
Attributes
AnimationPlaybackEvent.currentTime
- The current time of the animation that generated the event.
AnimationPlaybackEvent.timelineTime
- The time value of the timeline of the animation that generated the event.
Specifications
Specification | Status | Comment |
---|---|---|
Web Animations The definition of 'AnimationPlaybackEvent' in that specification. |
Working Draft | Editor's draft. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic support | Chrome Full support Yes | Edge No support No | Firefox Full support Yes | IE No support No | Opera No support No | Safari No support No | WebView Android Full support Yes | Chrome Android Full support Yes | Edge Mobile No support No | Firefox Android No support No | Opera Android No support No | Safari iOS No support No | Samsung Internet Android Full support Yes |
AnimationPlaybackEvent | Chrome Full support Yes | Edge No support No | Firefox Full support Yes | IE No support No | Opera No support No | Safari No support No | WebView Android Full support Yes | Chrome Android Full support Yes | Edge Mobile No support No | Firefox Android No support No | Opera Android No support No | Safari iOS No support No | Samsung Internet Android Full support Yes |
currentTime | Chrome Full support Yes | Edge No support No | Firefox Full support Yes | IE No support No | Opera No support No | Safari No support No | WebView Android Full support Yes | Chrome Android Full support Yes | Edge Mobile No support No | Firefox Android No support No | Opera Android No support No | Safari iOS No support No | Samsung Internet Android Full support Yes |
timelineTime | Chrome Full support Yes | Edge No support No | Firefox Full support Yes | IE No support No | Opera No support No | Safari No support No | WebView Android Full support Yes | Chrome Android Full support Yes | Edge Mobile No support No | Firefox Android No support No | Opera Android No support No | Safari iOS No support No | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.