Set a phrase as kinetic type
kinetic_typeLay out a phrase word by word, measured by the real text engine (wrapping at width, words sharing a baseline), with emphasis on chosen words (colour, style, size, tilt, a highlight pill) and motion that gives every word its own path: fly, drop, scatter, pop, wave, glitch, zoom; exit_at sends them out. Seeded, so it varies per phrase but repeats exactly. Returns the group id and the block's size.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Where the block sits in the parent and how wide it may be, px. | |
| y | Yes | ||
| name | No | The group's name (default: the text). | |
| seed | No | ||
| text | Yes | ||
| align | No | left | |
| color | No | #111111 | |
| start | No | Seconds. | |
| width | Yes | ||
| intent | Yes | One short sentence: what you change and why. Kept in the design history. | |
| motion | No | ||
| exit_at | No | Leave at this second (words fly back out in reverse). | |
| page_id | Yes | The page to work on, as returned by create_design. | |
| stagger | No | Seconds between words (default 0.08). | |
| duration | No | Seconds each word takes (default 0.7). | |
| emphasis | No | ||
| font_size | Yes | ||
| parent_id | No | ||
| strike_at | No | Strike the whole phrase through at this second: a line draws across the words left to right (a "stop doing this" list item). | |
| font_style | No | ||
| font_family | No | ||
| line_height | No | Line height: a multiple of the size (default 1.15), or px when above 4. | |
| strike_color | No | The strike line's colour (default the text colour). |