clj-chrome-devtools.commands.animation
disable
(disable)(disable {:as params, :keys []})(disable connection {:as params, :keys []})Disables animation domain notifications.
enable
(enable)(enable {:as params, :keys []})(enable connection {:as params, :keys []})Enables animation domain notifications.
get-current-time
(get-current-time)(get-current-time {:as params, :keys [id]})(get-current-time connection {:as params, :keys [id]})Returns the current time of the an animation.
Parameters map keys:
| Key | Description |
|---|---|
| :id | Id of animation. |
Return map keys:
| Key | Description |
|---|---|
| :current-time | Current time of the page. |
get-playback-rate
(get-playback-rate)(get-playback-rate {:as params, :keys []})(get-playback-rate connection {:as params, :keys []})Gets the playback rate of the document timeline.
Return map keys:
| Key | Description |
|---|---|
| :playback-rate | Playback rate for animations on page. |
release-animations
(release-animations)(release-animations {:as params, :keys [animations]})(release-animations connection {:as params, :keys [animations]})Releases a set of animations to no longer be manipulated.
Parameters map keys:
| Key | Description |
|---|---|
| :animations | List of animation ids to seek. |
resolve-animation
(resolve-animation)(resolve-animation {:as params, :keys [animation-id]})(resolve-animation connection {:as params, :keys [animation-id]})Gets the remote object of the Animation.
Parameters map keys:
| Key | Description |
|---|---|
| :animation-id | Animation id. |
Return map keys:
| Key | Description |
|---|---|
| :remote-object | Corresponding remote object. |
seek-animations
(seek-animations)(seek-animations {:as params, :keys [animations current-time]})(seek-animations connection {:as params, :keys [animations current-time]})Seek a set of animations to a particular time within each animation.
Parameters map keys:
| Key | Description |
|---|---|
| :animations | List of animation ids to seek. |
| :current-time | Set the current time of each animation. |
set-paused
(set-paused)(set-paused {:as params, :keys [animations paused]})(set-paused connection {:as params, :keys [animations paused]})Sets the paused state of a set of animations.
Parameters map keys:
| Key | Description |
|---|---|
| :animations | Animations to set the pause state of. |
| :paused | Paused state to set to. |
set-playback-rate
(set-playback-rate)(set-playback-rate {:as params, :keys [playback-rate]})(set-playback-rate connection {:as params, :keys [playback-rate]})Sets the playback rate of the document timeline.
Parameters map keys:
| Key | Description |
|---|---|
| :playback-rate | Playback rate for animations on page |
set-timing
(set-timing)(set-timing {:as params, :keys [animation-id duration delay]})(set-timing connection {:as params, :keys [animation-id duration delay]})Sets the timing of an animation node.
Parameters map keys:
| Key | Description |
|---|---|
| :animation-id | Animation id. |
| :duration | Duration of the animation. |
| :delay | Delay of the animation. |