AnimationPlaybackEvent Class

The event fired when the playback state of an animation changes: finish, cancel and remove (https://drafts.csswg.org/web-animations-1/#animationplaybackevent).

public sealed class AnimationPlaybackEvent : Event
Inheritance
Event AnimationPlaybackEvent

Constructors

NameDescription
AnimationPlaybackEvent(string, AnimationPlaybackEventInit?)Creates an event of the given type.

AnimationPlaybackEvent(string, AnimationPlaybackEventInit?)

AnimationPlaybackEvent.cs

Creates an event of the given type.

public AnimationPlaybackEvent(string type, AnimationPlaybackEventInit? eventInitDict = null)

Properties

NameDescription
CurrentTimeGets the current time of the animation that generated the event.
TimelineTimeGets the current time of the timeline of the animation that generated the event.

Gets the current time of the animation that generated the event.

public CssNumberish? CurrentTime { get; }

Gets the current time of the timeline of the animation that generated the event.

public CssNumberish? TimelineTime { get; }