DocumentTimeline

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{ 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")}} {{ReadOnlyInline}}
  • : 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()")}}