Design Format
Animation
Documentation for the Animation type in the Polotno design JSON Schema.
Type Information
Base Type: object
Properties
| Property | Type | Description |
|---|---|---|
delay | number | Delay before the animation starts, in milliseconds. |
duration | number | Animation duration in milliseconds. |
enabled | boolean | Whether the animation is enabled. |
type | "enter" | "exit" | "loop" | Animation phase. |
name | string | Animation name identifier. |
data | unknown | Animation-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"
]
}Related Definitions
No related definitions found.