Skip to main content

DocumentTimeline

The DocumentTimeline interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline).

MDN Reference

Extends

Properties

currentTime

readonly currentTime: CSSNumberish | null;

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.

MDN Reference

Inherited from

AnimationTimeline.currentTime


duration

readonly duration: CSSNumberish | null;

The duration read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or null.

MDN Reference

Inherited from

AnimationTimeline.duration