AnimationTimeline Class
A source of time values for animations (https://drafts.csswg.org/web-animations-1/#timelines).
public abstract class AnimationTimelineProperties
| Name | Description |
|---|---|
| CurrentTime | Gets the current time of the timeline, in milliseconds (https://drafts.csswg.org/web-animations-1/#dom-animationtimeline-currenttime), or null when the timeline is inactive. |
| Duration | Gets the duration of the timeline (https://drafts.csswg.org/web-animations-2/#dom-animationtimeline-duration): 100% for a progress-based timeline, null for a document timeline. |
CurrentTime
AnimationTimeline.csGets the current time of the timeline, in milliseconds (https://drafts.csswg.org/web-animations-1/#dom-animationtimeline-currenttime), or null when the timeline is inactive.
public CssNumberish? CurrentTime { get; }Duration
AnimationTimeline.csGets the duration of the timeline (https://drafts.csswg.org/web-animations-2/#dom-animationtimeline-duration): 100% for a progress-based timeline, null for a document timeline.
public CssNumberish? Duration { get; }Property value
See also
Methods
| Name | Description |
|---|---|
| Play(AnimationEffect?) | Creates an animation of the effect on the timeline and plays it (https://drafts.csswg.org/web-animations-2/#dom-animationtimeline-play). |
Play(AnimationEffect?)
AnimationTimeline.csCreates an animation of the effect on the timeline and plays it (https://drafts.csswg.org/web-animations-2/#dom-animationtimeline-play).
public Animation Play(AnimationEffect? effect = null)