Strike data
Wraps something and strikes a line through it.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| color | color | "bad" | |
| thickness | number (2 to 60) | 12 | |
| delay | number (0 to 30) | 0.3 | |
| tilt | number (-30 to 30) | -4 |
* 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 |
| line | shape |
Content it wraps#
It wraps whatever is written in its children.
Example#
{"el": "Strike", "children": [{"el": "text", "text": "Content", "size": 150}]}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",
"dir": "stack",
"children": [
"$children",
{
"el": "shape",
"id": "line",
"kind": "line",
"w": "fill",
"strokeW": "$thickness",
"stroke": "$color",
"rotate": "$tilt",
"motion": [{"do": "draw", "delay": "$delay", "curve": "snap"}]
}
]
}