Back to Content

DocumentTimeline

files/en-us/web/api/documenttimeline/index.md

latest1.1 KB
Original Source

{{ APIRef("Web Animations") }}

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

{{InheritanceDiagram}}

Constructor

  • {{domxref("DocumentTimeline.DocumentTimeline", "DocumentTimeline()")}}
    • : Creates a new DocumentTimeline object associated with the active document of the current browsing context.

Instance properties

This interface inherits its property from its parent, {{domxref("AnimationTimeline")}}.

  • {{domxref("AnimationTimeline.currentTime")}}
    • : Returns the time value in milliseconds for this timeline or null if it is inactive.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • Web Animations API
  • {{domxref("AnimationTimeline")}}
  • {{domxref("AnimationTimeline.currentTime")}}
  • {{domxref("Document.timeline")}}
  • {{domxref("DocumentTimeline.DocumentTimeline", "DocumentTimeline()")}}