DocumentTimeline
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年7月.
Web 动画 API 的 DocumentTimeline
接口用于表示动画时间线(包括默认的文档时间线——可通过 Document.timeline
访问)。
构造函数
DocumentTimeline()
-
创建一个与当前浏览上下文的活动文档相关联的新
DocumentTimeline
对象。
实例属性
此接口从其父接口 AnimationTimeline
继承属性。
AnimationTimeline.currentTime
-
返回此时间线的时间值(以毫秒为单位),如果未激活则返回
null
。
规范
Specification |
---|
Web Animations> # the-documenttimeline-interface> |
浏览器兼容性
Loading…