StepHeader data
A step title: a huge thin numeral with the word laid over it.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| n* | number | ||
| label | string | "Step" | |
| color | color | "accent2" | |
| ink | color | "white" | |
| size | number (80 to 1200) | 440 |
* 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 |
| numeral | text |
| label | text |
Example#
{"el": "StepHeader", "n": 2, "label": "Step"}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": [
{
"el": "text",
"id": "numeral",
"text": "{n}",
"size": "$size",
"weight": 400,
"font": "serif",
"color": "$color",
"leading": 0.8,
"motion": [{"do": "enter", "from": {"y": 80, "opacity": 0, "blur": 12}, "curve": "heavy"}]
},
{
"el": "text",
"id": "label",
"text": "$label",
"size": "=size*0.24",
"weight": 600,
"color": "$ink",
"tracking": 0.32,
"upper": true,
"glow": "$color",
"motion": [{"do": "enter", "from": {"scale": 1.3, "opacity": 0}, "delay": 0.18, "curve": "punchy"}]
}
]
}