MomentFlow data
A full-frame process: a title over steps joined by a line, lit one after another. For 'first this, then that'.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| steps* | list of string | ||
| title | string | "" | |
| ink | color | "ink" | |
| on | string | "page" | the surface it sits on |
| frameW | number | its width, when it is not the whole frame | |
| frameH | number | its height, when it is not the whole frame |
* 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 |
| page | box |
| title | text |
| flow | Pipeline |
Example#
{"el": "MomentFlow", "title": "How it runs", "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",
"id": "page",
"surface": "$on",
"w": "$frameW",
"h": "$frameH",
"gap": 60,
"align": "center",
"justify": "center",
"motion": [{"do": "enter", "from": {"opacity": 0, "scale": 1.05}, "curve": "smooth"}],
"children": [
{
"el": "text",
"id": "title",
"text": "$title",
"size": "=frameW*0.07",
"weight": 800,
"color": "$ink",
"align": "center",
"maxW": "=frameW-180",
"motion": [
{
"do": "enter",
"from": {"y": 36, "opacity": 0, "blur": 6},
"delay": 0,
"curve": "smooth"
}
]
},
{
"el": "Pipeline",
"id": "flow",
"steps": "$steps",
"w": "=frameW*0.56",
"color": "accent",
"delay": 0.7,
"loop": 1.5,
"start": 0.3
}
]
}