Document.timeline

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

The timeline readonly property of the Document interface represents the default timeline of the current document. This timeline is a special instance of DocumentTimeline that is automatically created on page load. 

This timeline is unique to each document and persists for the lifetime of the document including calls to Document.open().

The time values for this timeline are calculated as a fixed offset from the global clock such that the zero time corresponds to the navigationStart moment plus a signed delta known as the origin time. Prior to establishing the navigationStart moment, the document timeline is inactive.

Note: A document timeline that is associated with a non-active document is also considered to be inactive.

Syntax

JavaScript
var pageTimeline = document.timeline;
var thisMoment = pageTimeline.currentTime;

Value

A DocumentTimeline object.

Specifications

Specification Status Comment
Web Animations
The definition of 'document.timeline' in that specification.
Working Draft Editor's draft.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support No support 48 (48)[1] No support No support No support
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support No support No support No support No support No support No support No support No support

[1] Currently supported only in Firefox Nightly.

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/document/timeline

Animation AnimationTimeline API Document DocumentTimeline Experimental Property Reference timeline waapi web animations api