DocumentTimeline
{{ 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.
- : Creates a new
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.
- : Returns the time value in milliseconds for this timeline or
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- Web Animations API
{{domxref("AnimationTimeline")}}
{{domxref("AnimationTimeline.currentTime")}}
{{domxref("Document.timeline")}}
{{domxref("DocumentTimeline.DocumentTimeline", "DocumentTimeline()")}}