Pipeline data
Steps in a column joined by lines, with a glowing packet that keeps travelling down through them; each step swells as the packet passes.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| steps* | list of string | ||
| w | number (200 to 1000) | 620 | |
| each | number (0 to 2) | 0.4 | |
| loop | number (0.5 to 20) | 2.6 | seconds for the packet to pass through |
| delay | number (0 to 20) | 2 | when the packet starts |
| color | color | "accent" |
* 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 |
| step | box |
| packet | shape |
Example#
{"el": "Pipeline", "steps": ["Record", "Cut", "Caption", "Post"]}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",
"align": "center",
"motion": [{"do": "stagger", "each": "$each"}],
"children": [
{
"$each": "$steps",
"node": {
"el": "box",
"align": "center",
"children": [
{
"el": "box",
"id": "step",
"surface": "card",
"w": "$w",
"pad": [30, 44],
"align": "center",
"motion": [
{"do": "enter", "from": "pop", "curve": "bouncy"},
{
"do": "drive",
"pose": {
"scale": "=1+0.07*step(delay,t)*bell((mod((t-delay)/loop,1)*count-index-0.4)*1.6)"
}
}
],
"children": [{"el": "text", "text": "$item", "size": 52, "weight": 700}]
},
{
"el": "shape",
"kind": "rect",
"w": 8,
"h": {"$if": "=index<count-1", "then": 70, "else": 0},
"fill": "muted",
"origin": "top",
"motion": [{"do": "enter", "from": {"scaleY": 0}, "delay": 0.2}]
}
]
}
},
{
"el": "shape",
"id": "packet",
"kind": "circle",
"place": [0.5, 0],
"w": 34,
"fill": "$color",
"glow": "$color",
"motion": [
{
"do": "drive",
"pose": {
"y": "=mod((t-delay)/loop,1)*parentH",
"opacity": "=step(delay,t)*smooth(0,0.08,mod((t-delay)/loop,1))*smooth(1,0.92,mod((t-delay)/loop,1))"
}
}
]
}
]
}