Polotno Docs

Animation

Documentation for the Animation schema definition in the Polotno Design JSON Schema.

Animation

Type Information

Base Type: object

Properties

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

JSON Schema

{
  "additionalProperties": false,
  "properties": {
    "data": {
      "description": "Animation-specific data."
    },
    "delay": {
      "description": "Delay before animation starts in milliseconds.",
      "type": "number"
    },
    "duration": {
      "description": "Animation duration in milliseconds.",
      "type": "number"
    },
    "enabled": {
      "description": "Whether the animation is enabled.",
      "type": "boolean"
    },
    "name": {
      "description": "Animation name identifier.",
      "type": "string"
    },
    "type": {
      "description": "Type of animation: enter, exit, or loop.",
      "enum": [
        "enter",
        "exit",
        "loop"
      ],
      "type": "string"
    }
  },
  "required": [
    "delay",
    "duration",
    "enabled",
    "type",
    "name",
    "data"
  ],
  "type": "object"
}

No related definitions found.