apply_animation_style
Apply a Figma Motion animation preset to a node, tuning duration, timelineOffset for stagger, and preset props. Returns appliedStyleId for later removal.
Instructions
Apply a Figma Motion animation-style preset to a node (get styleIds from get_motion_styles). config tunes it: duration (seconds), timelineOffset (seconds — the lever for staggered entrances: give each node index * step), and preset-specific props. Returns { ok, nodeId, appliedStyleId } — keep appliedStyleId to remove exactly this instance later. To stagger a whole row in one atomic, undoable call, drive N apply_animation_style ops through batch with increasing timelineOffset. Motion is a Figma-Design-only beta feature.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | Optional tuning: duration, timelineOffset (for stagger), preset props | |
| nodeId | Yes | Figma node id to animate | |
| styleId | Yes | A styleId from get_motion_styles |