SpeakerCredit data
A speaker identification with a replaceable leading mark. First the rule extends, then the name clears its baseline.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| name | string | "Guest speaker" | |
| role | string | "Interview" | |
| color | color | "ink" | |
| accent | color | "accent" | |
| curve | curve | "smooth" |
* 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 |
| rule | shape |
| role | text |
| name | text |
Content it wraps#
| Slot | What goes in it |
|---|---|
| mark | [object Object] |
Fill a slot with a list of nodes: "slots": { "mark": [ … ] }.
Example#
{"el": "SpeakerCredit", "name": "Amr Taher", "role": "Reelify"}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",
"w": 500,
"gap": 16,
"align": "start",
"children": [
{
"el": "shape",
"id": "rule",
"kind": "rect",
"w": 496,
"h": 3,
"fill": "$accent",
"origin": "left",
"motion": [{"do": "enter", "from": {"scaleX": 0}, "curve": "$curve"}]
},
{
"el": "box",
"dir": "row",
"align": "center",
"gap": 15,
"children": [
{
"$slot": "mark",
"fallback": [{"el": "icon", "name": "mic", "size": 28, "color": "$color"}]
},
{
"el": "text",
"id": "role",
"text": "$role",
"size": 34,
"font": "mono",
"weight": 500,
"upper": true,
"color": "$color"
}
]
},
{
"el": "box",
"clip": true,
"children": [
{
"el": "text",
"id": "name",
"text": "$name",
"size": 56,
"weight": 650,
"tracking": -0.045,
"color": "$color",
"motion": [{"do": "enter", "from": {"y": 68}, "delay": 0.15, "curve": "$curve"}]
}
]
}
]
}