Web 动画 API allows for synchronizing and timing changes to the presentation of a Web page, i.e. animation of DOM elements. It does so by combining two models: the Timing Model and the Animation Model.
The Web Animations API provides a common language for browsers and developers to describe animations on DOM elements. To get more information on the concepts behind the API and how to use it, read 使用 Web 动画 API .
动画
KeyframeEffect()
构造函数。
KeyframeEffect
Animation()
构造函数。
AnimationTimeline
DocumentTimeline
and future timeline objects) and is not itself accessed by developers.
AnimationEvent
Actually part of CSS Animations.
DocumentTimeline
Document.timeline
特性)。
EffectTiming
Element.animate()
,
KeyframeEffectReadOnly.KeyframeEffectReadOnly()
,和
KeyframeEffect.KeyframeEffect()
all accept an optional dictionary object of timing properties.
The Web Animations API adds some new features to
document
and
element
.
Document
interface
document.timeline
DocumentTimeline
object representing the default document timeline.
document.getAnimations()
动画
objects currently in effect on elements in the
document
.
元素
interface
Element.animate()
动画
对象实例。
Element.getAnimations()
动画
objects currently affecting an element or which are scheduled to do so in future.
| 规范 | 状态 | 注释 |
|---|---|---|
| Web 动画 | 工作草案 | 初始定义 |