Duration
A length of time for animation.
Partial: a duration can be authored, validated, referenced and exported. It cannot be applied to layers or mapped to a Figma variable.
Value format
{ "$type": "duration", "$value": { "value": 300, "unit": "ms" } }| Field | Allowed |
|---|---|
value |
Any finite number |
unit |
"ms" or "s" |
In Syntope Tokens
| You type | Stored as |
|---|---|
300ms |
300, ms |
0.5s |
0.5, s |
300 |
300, ms. A bare number is milliseconds |
{motion.fast} |
A reference |
In Figma
Figma layers have no property for a duration, so Apply token is disabled for this type. Variable sync leaves duration tokens out.
Use durations in code through export or sync, and inside a transition token.
