Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите сделать эту работу!
Вы можете также прочитать эту статью на English (US).

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.

Properties

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

Specifications

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

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes ?

48

45 — 481

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

48

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

Метки документа и участники

Внесли вклад в эту страницу: ExE-Boss, Sheppy, suzyh, rachelnabors, chrisdavidmills
Обновлялась последний раз: ExE-Boss,