Animation🧪
✅️️ Methods
🔨Animation.disable
禁用动画域通知。
EN
Disables animation domain notifications.
🔨Animation.enable
启用动画域通知。
EN
Enables animation domain notifications.
🔨Animation.getCurrentTime
返回动画的当前时间。
EN
Returns the current time of the an animation.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| id | ✔️ | string | 动画的Id。 | ENId of animation. |
| 返回对象 | 类型 | 描述 | 原文 |
|---|---|---|---|
| currentTime | number | 页面当前时间。 | ENCurrent time of the page. |
🔨Animation.getPlaybackRate
获取文档时间线的播放速率。
EN
Gets the playback rate of the document timeline.
| 返回对象 | 类型 | 描述 | 原文 |
|---|---|---|---|
| playbackRate | number | 页面动画的播放速率。 | ENPlayback rate for animations on page. |
🔨Animation.releaseAnimations
释放一组动画,使其不再受操控。
EN
Releases a set of animations to no longer be manipulated.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| animations | ✔️ | array[string] | 要跳转到的动画ID列表。 | ENList of animation ids to seek. |
🔨Animation.resolveAnimation
获取Animation的远程对象。
EN
Gets the remote object of the Animation.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| animationId | ✔️ | string | 动画ID。 | ENAnimation id. |
| 返回对象 | 类型 | 描述 | 原文 |
|---|---|---|---|
| remoteObject | Runtime.RemoteObject | 对应的远程对象。 | ENCorresponding remote object. |
🔨Animation.seekAnimations
将一组动画定位到每个动画内的特定时间点。
EN
Seek a set of animations to a particular time within each animation.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| animations | ✔️ | array[string] | 要定位 的动画ID列表。 | ENList of animation ids to seek. | |
| currentTime | ✔️ | number | 设置每个动画的当前时间。 | ENSet the current time of each animation. |
🔨Animation.setPaused
设置一组动画的暂停状态。
EN
Sets the paused state of a set of animations.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| animations | ✔️ | array[string] | 设置以下动画的暂停状态:''和``内的内容保持不变。 | ENAnimations to set the pause state of. | |
| paused | ✔️ | boolean | 要设置的暂停状态。 | ENPaused state to set to. |