AnimationEffect
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年3月.
Web 动画 API 的 AnimationEffect
接口表示动画的效果。
AnimationEffect
是一个抽象接口,因此不能直接实例化。但像 KeyframeEffect
这样的具体接口继承自它,你可以将这些接口的实例传递给 Animation
对象进行播放,或在 CSS 动画和过渡中使用它们。
实例方法
AnimationEffect.getTiming()
-
返回与动画相关联的包含所有动画的计时的对象。
AnimationEffect.getComputedTiming()
-
返回此
AnimationEffect
的计算计时属性。 AnimationEffect.updateTiming()
-
更新此
AnimationEffect
的指定计时属性。
规范
Specification |
---|
Web Animations> # the-animationeffect-interface> |
浏览器兼容性
Loading…