此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

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 动画 APIDocumentTimeline 接口用于表示动画时间线(包括默认的文档时间线——可通过 Document.timeline 访问)。

AnimationTimeline DocumentTimeline

构造函数

DocumentTimeline()

创建一个与当前浏览上下文的活动文档相关联的新 DocumentTimeline 对象。

实例属性

此接口从其父接口 AnimationTimeline 继承属性。

AnimationTimeline.currentTime

返回此时间线的时间值(以毫秒为单位),如果未激活则返回 null

规范

Specification
Web Animations
# the-documenttimeline-interface

浏览器兼容性

参见