Path: blob/main/files/en-us/web/api/animationplaybackevent/index.md
6567 views
------{{ APIRef("Web Animations") }}
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.
{{InheritanceDiagram}}
Constructor
{{domxref("AnimationPlaybackEvent.AnimationPlaybackEvent", "AnimationPlaybackEvent()")}}
: Constructs a new
AnimationPlaybackEventobject instance.
Instance properties
{{domxref("AnimationPlaybackEvent.currentTime")}} {{ReadOnlyInline}}
: The current time of the animation that generated the event.
{{domxref("AnimationPlaybackEvent.timelineTime")}} {{ReadOnlyInline}}
: The time value of the timeline of the animation that generated the event.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{domxref("Animation.playState")}}