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 动画 API 的 AnimationPlaybackEvent
接口表示动画事件。
当动画播放时,其会通过动画事件报告其 playState
的变化。
构造器
AnimationPlaybackEvent()
-
构造一个新的
AnimationPlaybackEvent
对象实例。
实例属性
AnimationPlaybackEvent.currentTime
只读-
生成事件的动画的当前时间。
AnimationPlaybackEvent.timelineTime
只读-
生成事件的动画的时间线的时间值。
规范
Specification |
---|
Web Animations> # the-animationplaybackevent-interface> |
浏览器兼容性
Loading…