This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The AnimationTimeline interface of the Web Animations API represents the timeline of an animation. This interface exists to define timeline features (inherited by DocumentTimeline and future timeline types) and is not itself directly used by developers. Anywhere you see AnimationTimeline, you should use DocumentTimeline or any other timeline type instead.


AnimationTimeline.currentTime Read only
Returns the time value in milliseconds for this timeline or null if this timeline is inactive.


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

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes ?


45 — 481

No Yes No
currentTime39 ?34 No26 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes ?


45 — 481

Yes No Yes
currentTime6161 ?3426 No No

1. From version 45 until version 48 (exclusive): this feature is behind the dom.animations-api.core.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

See also

Document Tags and Contributors

Contributors to this page: ExE-Boss, Sheppy, suzyh, rachelnabors, chrisdavidmills
Last updated by: ExE-Boss,