AnimationPlaybackEvent

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

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

Constructor

AnimationPlaybackEvent.AnimationPlaybackEvent()

Constructs a new AnimationPlaybackEvent object instance.

Attributes

AnimationPlaybackEvent.currentTime

The current time of the animation that generated the event.

AnimationPlaybackEvent.timelineTime

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

Specifications

Specification
Web Animations Level 2 (Web Animations 2)
# the-animationplaybackevent-interface

Browser compatibility

BCD tables only load in the browser

See also