Underline data
Wraps a word or a line and draws a hand-made stroke under it.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| color | color | "accent2" | |
| at | time | ||
| delay | number (0 to 5) | 0.3 | |
| thickness | number (2 to 30) | 9 |
* 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 | box |
Content it wraps#
It wraps whatever is written in its children.
Example#
{"el": "Underline", "children": [{"el": "text", "text": "by hand", "size": 120}]}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": "box",
"align": "stretch",
"gap": 4,
"children": [
"$children",
{
"el": "shape",
"kind": "path",
"w": "fill",
"h": 26,
"vb": [240, 16],
"d": "M3 9 C 40 1, 78 15, 122 7 S 204 3, 237 9",
"stroke": "$color",
"strokeW": "$thickness",
"motion": [{"do": "draw", "at": "$at", "delay": "$delay", "curve": "snap"}]
}
]
}