KineticLine data
A line of big type that arrives word by word (or letter by letter); the marked words take the accent colour and swell.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| text* | string | ||
| size | number (34 to 400) | 120 | |
| color | color | "ink" | |
| mark | string | "" | the word or phrase to emphasise |
| markColor | color | "accent" | |
| from | pose | "rise" | |
| split | enum: word | char | "word" | |
| each | number (0 to 1) | 0.07 | seconds between words |
| bounce | number (0 to 0.9) | 0.3 | |
| align | enum: start | center | end | "center" | |
| maxW | number (100 to 3840) | 920 |
* required. Every node also takes the common props: id, motion, start, place, scale, rotate, opacity, w, h. A colour is a palette name, never a value.
Parts#
Named parts can be restyled from outside without making a new component: "parts": { "root": { … } }.
| Part | Is a |
|---|---|
| root | text |
Example#
{"el": "KineticLine", "text": "Stop editing by hand", "mark": "by hand"}How it is made#
This component is plain data. Its whole definition is the tree below: copy it into a scene's components list under a new name to make your own version. See Custom components.
{
"el": "text",
"text": "$text",
"size": "$size",
"weight": 800,
"color": "$color",
"align": "$align",
"maxW": "$maxW",
"leading": 1.06,
"split": "$split",
"mark": "$mark",
"markColor": "$markColor",
"markMotion": [{"do": "to", "pose": {"scale": 1.07}, "delay": 0.3, "curve": "bouncy"}],
"motion": [
{
"do": "stagger",
"each": "$each",
"motion": [
{
"do": "enter",
"from": "$from",
"curve": {"spring": {"bounce": "$bounce", "duration": 0.55}}
}
]
}
]
}