Document: timeline property
Baseline 2022
Newly available
Since September 2022, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The timeline
readonly property of the Document
interface represents the default timeline of the current document. This timeline is a special instance of DocumentTimeline
.
This timeline is unique to each document
and persists for the lifetime of the document
including calls to Document.open()
.
This timeline expresses the time in milliseconds since Performance.timeOrigin
.
Prior to the time origin, the timeline is inactive, and its currentTime
is null
.
Value
A DocumentTimeline
object.
Specifications
Specification |
---|
Web Animations # dom-document-timeline |
Browser compatibility
BCD tables only load in the browser