AnimationTimeline
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.
Properties
-
AnimationTimeline.currentTime Read only
- Returns the time value in milliseconds for this timeline or
null if this timeline is inactive.
Specifications
|
Desktop |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
| Basic support
|
Yes |
? |
63 Disabled
- 63
Disabled
- Disabled From version 63: this feature is behind the
dom.animations-api.timelines.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
- 48 — 63
Disabled
- Disabled From version 48 until version 63 (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.
|
No |
Yes |
No |
currentTime
|
39 |
? |
63 Disabled
- 63
Disabled
- Disabled From version 63: this feature is behind the
dom.animations-api.timelines.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
- 48 — 63
Disabled
- Disabled From version 48 until version 63 (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.
|
No |
26 |
No |
|
Mobile |
|
Android webview |
Chrome for Android |
Edge Mobile |
Firefox for Android |
Opera for Android |
iOS Safari |
Samsung Internet |
| Basic support
|
Yes |
Yes |
? |
63 Disabled
- 63
Disabled
- Disabled From version 63: this feature is behind the
dom.animations-api.timelines.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
- 48 — 63
Disabled
- Disabled From version 48 until version 63 (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.
|
Yes |
No |
Yes |
currentTime
|
61 |
61 |
? |
63 Disabled
- 63
Disabled
- Disabled From version 63: this feature is behind the
dom.animations-api.timelines.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
- 48 — 63
Disabled
- Disabled From version 48 until version 63 (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.
|
26 |
No |
No |
See also