AnimationPlaybackEvent

Baseline 2022

Newly available

Since September 2022, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

The AnimationPlaybackEvent interface of the Web Animations API represents animation events.

As animations play, they report changes to their playState through animation events.

Event AnimationPlaybackEvent

Constructor

AnimationPlaybackEvent()

Constructs a new AnimationPlaybackEvent object instance.

Instance properties

AnimationPlaybackEvent.currentTime Read only

The current time of the animation that generated the event.

AnimationPlaybackEvent.timelineTime Read only

The time value of the timeline of the animation that generated the event.

Specifications

Specification
Web Animations
# the-animationplaybackevent-interface

Browser compatibility

BCD tables only load in the browser

See also