MomentQuote data
A full-frame line in a serif that streams in word by word, one phrase underlined. For the sentence worth stopping on.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| text* | string | ||
| mark | string | "" | |
| by | 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 |
| line | StreamText |
| by | text |
Example#
{
"el": "MomentQuote",
"text": "The edit is the easy part once the words are timed.",
"mark": "the easy part"
}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": 30,
"align": "start",
"justify": "center",
"motion": [{"do": "enter", "from": {"opacity": 0, "scale": 1.05}, "curve": "smooth"}],
"pad": 100,
"children": [
{
"el": "text",
"text": "“",
"size": "=frameW*0.2",
"weight": 400,
"font": "serif",
"color": "accent",
"leading": 0.7,
"motion": [{"do": "enter", "from": "pop", "curve": "bouncy"}]
},
{
"el": "StreamText",
"id": "line",
"text": "$text",
"mark": "$mark",
"color": "$ink",
"font": "serif",
"weight": 400,
"size": "=frameW*0.074",
"w": "=frameW-200",
"delay": 0.2,
"each": 0.09
},
{
"el": "text",
"id": "by",
"text": "$by",
"size": 40,
"weight": 600,
"font": "mono",
"color": "muted",
"motion": [
{
"do": "enter",
"from": {"y": 36, "opacity": 0, "blur": 6},
"delay": 1.2,
"curve": "smooth"
}
]
}
]
}