← Back to Animation domain

Animation.setPaused

Sets the paused state of a set of animations.

Domain: Animation experimental

Parameters

NameTypeDescription
animationsarrayAnimations to set the pause state of.
pausedbooleanPaused state to set to.

Example Request

{
  "id": 1,
  "method": "Animation.setPaused",
  "params": {
    "animations": [],
    "paused": true
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Animation.setPaused', {"animations": [], "paused": true});
console.log(result);