Table of Contents

Class AnimationPlaybackEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

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

[Value("AnimationPlaybackEvent")]
public class AnimationPlaybackEvent : Event
Inheritance
AnimationPlaybackEvent
Inherited Members

Remarks

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

-Web Animations API
-PlayState

See also on MDN

Constructors

AnimationPlaybackEvent()

public AnimationPlaybackEvent()

AnimationPlaybackEvent(string, AnimationPlaybackEventInit)

The AnimationPlaybackEvent() constructor of the Web Animations API returns a new AnimationPlaybackEvent object instance.

public AnimationPlaybackEvent(string type, AnimationPlaybackEventInit eventInitDict = null)

Parameters

type string
eventInitDict AnimationPlaybackEventInit

Remarks

Properties

CurrentTime

The currentTime read-only property of the AnimationPlaybackEvent interface represents the current time of the animation that generated the event at the moment the event is queued. This will be unresolved if the animation was idle at the time the event was generated.

[Value("currentTime")]
public Union13? CurrentTime { get; }

Property Value

Union13?

A number representing the current time in milliseconds, or null.

Remarks

-Web Animations API
-AnimationPlayBackEvent

See also on MDN

TimelineTime

The timelineTime read-only property of the AnimationPlaybackEvent interface represents the time value of the animation's AnimationTimeline at the moment the event is queued. This will be unresolved if the animation was not associated with a timeline at the time the event was generated or if the associated timeline was inactive.

[Value("timelineTime")]
public Union13? TimelineTime { get; }

Property Value

Union13?

A number representing the current time in milliseconds, or null.

Remarks