BrollCard data
A picture card that swings up over the speaker, with a caption under it. Give it a src, or leave the labelled placeholder.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| label | string | "b-roll" | |
| caption | string | "" | |
| src | string | ||
| w | number (200 to 1040) | 760 | |
| h | number (120 to 1400) | 480 | |
| radius | number (0 to 200) | 40 | |
| tilt | number (-20 to 20) | 3 |
* 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 |
| picture | img |
| caption | text |
Example#
{"el": "BrollCard", "label": "your screenshot", "caption": "the dashboard"}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",
"gap": 18,
"align": "center",
"rotate": "$tilt",
"motion": [{"do": "enter", "from": {"y": 700, "rotate": 10, "opacity": 0}, "curve": "heavy"}],
"children": [
{
"el": "img",
"id": "picture",
"src": "$src",
"label": "$label",
"w": "$w",
"h": "$h",
"radius": "$radius",
"shadow": 3
},
{
"el": "text",
"id": "caption",
"text": "$caption",
"size": 40,
"weight": 700,
"color": "white",
"outline": "black",
"outlineW": 8
}
]
}