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
[Value("duration")]
public Union13? Duration { get; }
Property Value
Methods
Play(AnimationEffect?)
[Value("play")]
public Animation Play(AnimationEffect? effect = null)
Parameters
effectAnimationEffect