{{ SeeCompatTable() }} {{ APIRef("Web Animations API") }}
The AnimationPlaybackEvent interface of the Web Animations API represents animation events.
As animations play, they report changes to their {{domxref("Animation.playState", "playState")}} through animation events.
Constructors
- {{domxref("AnimationPlaybackEvent.AnimationPlaybackEvent()")}}
- Constructs a new
AnimationPlaybackEvent
object instance.
Attributes
- {{domxref("AnimationPlaybackEvent.currentTime")}}
- The current time of the animation that generated the event.
- {{domxref("AnimationPlaybackEvent.timelineTime")}}
- The time value of the timeline of the animation that generated the event.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('Web Animations', '#the-animationplaybackevent-interface', 'AnimationPlaybackEvent' )}} | {{Spec2('Web Animations')}} | Editor's draft. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatVersionUnknown}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
Feature | Android | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} | {{ CompatNo}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
See also
- Web Animations API
- {{domxref("Animation.playState")}}