Polotno
Design Format

Animation

Documentation for the Animation type in the Polotno design JSON Schema.

Type Information

Base Type: object

Properties

PropertyTypeDescription
delaynumberDelay before the animation starts, in milliseconds.
durationnumberAnimation duration in milliseconds.
enabledbooleanWhether the animation is enabled.
type"enter" | "exit" | "loop"Animation phase.
namestringAnimation name identifier.
dataunknownAnimation-specific data.

JSON Schema

{
  "type": "object",
  "properties": {
    "delay": {
      "default": 0,
      "description": "Delay before the animation starts, in milliseconds.",
      "type": "number"
    },
    "duration": {
      "default": 500,
      "description": "Animation duration in milliseconds.",
      "type": "number"
    },
    "enabled": {
      "default": true,
      "description": "Whether the animation is enabled.",
      "type": "boolean"
    },
    "type": {
      "type": "string",
      "enum": [
        "enter",
        "exit",
        "loop"
      ],
      "description": "Animation phase."
    },
    "name": {
      "default": "none",
      "description": "Animation name identifier.",
      "type": "string"
    },
    "data": {
      "default": {},
      "description": "Animation-specific data."
    }
  },
  "required": [
    "type"
  ]
}

No related definitions found.

On this page