AnimationTimeline
Baseline 2022
Newly available
Since September 2022, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Web 动画 API的AnimationTimeline
接口表示动画的时间轴。这个接口用于定义时间轴功能(被文档时间线
(en-US)和未来的时间轴类型所继承),但本身并不能被开发人员直接使用。无论何处当你要用AnimationTimeline
,都应该使用DocumentTimeline
或其他时间轴类型来实例化。
属性
AnimationTimeline.currentTime
(en-US) 只读-
返回此时间轴的时间值(以毫秒为单位),若此时间轴未激活则返回
null
。
规格
Specification |
---|
Web Animations # the-animationtimeline-interface |
浏览器兼容性
BCD tables only load in the browser