This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.
The DocumentTimeline interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline).
DocumentTimeline()Creates a new DocumentTimeline object associated with the active document of the current browsing context.
This interface inherits its property from its parent, AnimationTimeline.
AnimationTimeline.currentTimeReturns the time value in milliseconds for this timeline or null if it is inactive.
| Specification |
|---|
| Web Animations> # the-documenttimeline-interface> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
DocumentTimeline |
84 | 84 | 75 | 70 | 13.1 | 84 | 79 | 60 | 13.4 | 14.0 | 84 | 13.4 |
DocumentTimeline |
84 | 84 | 75 | 70 | 13.1 | 84 | 79 | 60 | 13.4 | 14.0 | 84 | 13.4 |
AnimationTimelineAnimationTimeline.currentTimeDocument.timelineDocumentTimeline()
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline