Table of Contents

Class AnimationTimeline

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The AnimationTimeline interface of the Web Animations API represents the timeline of an animation. This interface exists to define timeline features, inherited by other timeline types:

[Value("AnimationTimeline")]
public class AnimationTimeline
Inheritance
AnimationTimeline
Derived
Inherited Members

Remarks

Constructors

AnimationTimeline()

public AnimationTimeline()

Properties

CurrentTime

The currentTime read-only property of the Web Animations API's AnimationTimeline interface returns the timeline's current time in milliseconds, or null if the timeline is inactive.

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

Property Value

Union13?

A number representing the timeline's current time in milliseconds, or null if the timeline is inactive.

Remarks

-Web Animations API
-AnimationTimeline
-DocumentTimeline inherits this property
-Timeline returns a timeline object which inherits this property

See also on MDN

Duration

[Value("duration")]
public Union13? Duration { get; }

Property Value

Union13?

Methods

Play(AnimationEffect?)

[Value("play")]
public Animation Play(AnimationEffect? effect = null)

Parameters

effect AnimationEffect

Returns

Animation