W3cubDocs

/Web APIs

AnimationTimeline

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2020⁩.

* Some parts of this feature may have varying levels of support.

The AnimationTimeline interface of the Web Animations API represents the timeline of an animation. This interface exists to define timeline features, inherited by other timeline types:

Instance properties

currentTime Read only

Returns the time value in milliseconds for this timeline or null if this timeline is inactive.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
AnimationTimeline 84 84 75 70 13.1 84 79 60 13.4 14.0 84 13.4
currentTime 84 84 75 70 13.1 84 79 60 13.4 14.0 84 13.4
duration 115 115 No 101 26 115 No 77 26 23.0 115 26

See also

© 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/AnimationTimeline