← Back to Animation domain

Animation.setTiming

Sets the timing of an animation node.

Domain: Animation experimental

Parameters

NameTypeDescription
animationIdstringAnimation id.
durationnumberDuration of the animation.
delaynumberDelay of the animation.

Example Request

{
  "id": 1,
  "method": "Animation.setTiming",
  "params": {
    "animationId": "animationId-value",
    "duration": 1.0,
    "delay": 1.0
  }
}

Example Response

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

Usage in Node.js

const result = await send('Animation.setTiming', {"animationId": "animationId-value", "duration": 1.0, "delay": 1.0});
console.log(result);