Show data
Shows one of the reel's pictures, large. Say what should be seen: the picture's id, or a few words for it. How it is framed is decided from the picture's shape.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| what* | string | ||
| title | string | "" | |
| 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 |
Example#
{"el": "Show", "what": "the dashboard"}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": 56,
"align": "center",
"justify": "center",
"motion": [{"do": "enter", "from": {"opacity": 0, "scale": 1.05}, "curve": "smooth"}],
"children": [
{"el": "text", "text": "$title", "size": 60, "weight": 800, "color": "ink"},
{"el": "img", "label": "$what", "w": "=frameW*0.7", "h": "=frameW*0.45", "radius": 22}
]
}