FeatureScene data
One feature of a product: an icon tile and a title on the left, and whatever shows it working in the panel slot on the right. "title" is the feature's name in a word or two (bright); "sub" is the rest of the sentence (quiet, it wraps onto the lines below). No line breaks are needed. The panel has about 950 px of width: give a wide piece in it "w" of 950 or less.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| title* | string | ||
| sub | string | "" | |
| icon | string | "bolt" | |
| w | number (600 to 1900) | 1700 | |
| accent | color | "accent" | |
| ink | color | "ink" |
* 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 |
| tile | box |
| title | text |
| sub | text |
| panel | box |
Content it wraps#
| Slot | What goes in it |
|---|---|
| panel | The product interface that shows the feature working |
Fill a slot with a list of nodes: "slots": { "panel": [ … ] }.
Example#
{"el": "FeatureScene", "title": "Cuts", "sub": "without the timeline", "icon": "scissors"}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": "row",
"w": "$w",
"justify": "between",
"align": "center",
"children": [
{
"el": "box",
"gap": 22,
"align": "start",
"w": 640,
"children": [
{
"el": "box",
"id": "tile",
"dir": "stack",
"w": 84,
"h": 84,
"radius": 20,
"fill": "$accent",
"glow": "$accent",
"motion": [{"do": "enter", "from": "pop", "curve": "bouncy"}],
"children": [{"el": "icon", "name": "$icon", "size": 46, "color": "night", "strokeW": 2.4}]
},
{
"el": "text",
"id": "title",
"text": "$title",
"size": 88,
"weight": 600,
"color": "$ink",
"tracking": -0.03,
"motion": [
{
"do": "enter",
"from": {"y": 30, "opacity": 0, "blur": 8},
"delay": 0.12,
"curve": "smooth"
}
]
},
{
"el": "text",
"id": "sub",
"text": "$sub",
"size": 88,
"weight": 600,
"color": "muted",
"tracking": -0.03,
"leading": 1.02,
"maxW": 640,
"motion": [
{
"do": "enter",
"from": {"y": 30, "opacity": 0, "blur": 8},
"delay": 0.24,
"curve": "smooth"
}
]
}
]
},
{
"el": "box",
"id": "panel",
"dir": "stack",
"w": 940,
"h": 640,
"children": [{"$slot": "panel"}]
}
]
}