Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface DocumentTimeline

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

MDN Reference

interface DocumentTimeline {
    currentTime: CSSNumberish | null;
    duration: CSSNumberish | null;
}

Hierarchy (View Summary)

Index
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

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

Was this helpful?