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

View in English Always switch to English

AnimationPlaybackEvent

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 动画 APIAnimationPlaybackEvent 接口表示动画事件。

当动画播放时,其会通过动画事件报告其 playState 的变化。

Event AnimationPlaybackEvent

构造器

AnimationPlaybackEvent()

构造一个新的 AnimationPlaybackEvent 对象实例。

实例属性

AnimationPlaybackEvent.currentTime 只读

生成事件的动画的当前时间。

AnimationPlaybackEvent.timelineTime 只读

生成事件的动画的时间线的时间值。

规范

Specification
Web Animations
# the-animationplaybackevent-interface

浏览器兼容性

参见