Back to Content

AnimationPlaybackEvent

files/en-us/web/api/animationplaybackevent/index.md

latest991 B
Original Source

{{ 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 AnimationPlaybackEvent object 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