AnimationPlaybackEvent
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{ 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
- Web Animations API
- {{domxref("Animation.playState")}}