Lockup data
The closing card: a mark that spins in, the name typed beside it, a line under it, a button.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| name* | string | ||
| tagline | string | "" | |
| cta | string | "" | |
| icon | string | "bolt" | |
| color | color | "ink" | |
| accent | color | "accent" | |
| size | number (40 to 400) | 150 |
* 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 |
| mark | box |
| name | text |
| tagline | text |
| cta | box |
Example#
{"el": "Lockup", "name": "reelify", "tagline": "One take is enough", "cta": "Make a reel"}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": 40,
"align": "center",
"children": [
{
"el": "box",
"dir": "row",
"gap": 28,
"align": "center",
"children": [
{
"el": "box",
"id": "mark",
"dir": "stack",
"w": "=size*0.82",
"h": "=size*0.82",
"radius": "=size*0.2",
"fill": "$accent",
"glow": "$accent",
"motion": [
{
"do": "enter",
"from": {"scale": 0, "rotate": -120, "opacity": 0},
"curve": "bouncy"
}
],
"children": [
{
"el": "icon",
"name": "$icon",
"size": "=size*0.48",
"color": "white",
"strokeW": 2.4,
"motion": [{"do": "draw", "delay": 0.25, "curve": "snap"}]
}
]
},
{
"el": "text",
"id": "name",
"text": "$name",
"size": "$size",
"weight": 700,
"color": "$color",
"tracking": -0.04,
"motion": [{"do": "type", "cps": 14, "delay": 0.5}]
}
]
},
{
"el": "text",
"id": "tagline",
"text": "$tagline",
"size": 46,
"weight": 450,
"font": "body",
"color": "muted",
"motion": [
{
"do": "enter",
"from": {"y": 24, "opacity": 0, "blur": 6},
"delay": 1.3,
"curve": "smooth"
}
]
},
{
"el": "box",
"id": "cta",
"radius": 16,
"fill": "$accent",
"pad": [20, 44],
"motion": [{"do": "enter", "from": "pop", "delay": 1.8, "curve": "bouncy"}],
"children": [
{
"el": "text",
"text": "$cta",
"size": 34,
"weight": 600,
"font": "body",
"color": "white"
}
]
}
]
}