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
-DocumentTimeline, ScrollTimeline, ViewTimeline
-Timeline
-Web Animations API
-CSS scroll-driven animations
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
nullif the timeline is inactive.
Remarks
-Web Animations API
-AnimationTimeline
-DocumentTimeline inherits this property
-Timeline returns a timeline object which inherits this property
Duration
The duration read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or null.
[Value("duration")]
public Union13? Duration { get; }
Property Value
- Union13?
A number representing the timeline's duration (the maximum value for this timeline) or
null.
Remarks
Note that the derived interfaces ViewTimeline and ScrollTimeline always return a duration of 100%, while DocumentTimeline has no duration, and returns null.
-Web Animations API
-AnimationTimeline
-DocumentTimeline inherits this property
-ScrollTimeline inherits this property
-ViewTimeline inherits this property
Methods
Play(AnimationEffect?)
[Value("play")]
public Animation Play(AnimationEffect? effect = null)
Parameters
effectAnimationEffect