Stamp data
A rubber stamp that slams down crooked and shakes what it hits.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| text* | string | ||
| color | color | "bad" | |
| size | number (20 to 300) | 72 | |
| tilt | number (-45 to 45) | -8 |
* 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 |
| stamp | box |
Example#
{"el": "Stamp", "text": "Stuck!"}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": "stamp",
"border": "$color",
"borderW": 8,
"radius": 10,
"pad": [10, 30],
"rotate": "$tilt",
"fill": "rgba(255,255,255,.04)",
"motion": [
{
"do": "enter",
"from": {"scale": 3, "opacity": 0, "rotate": -14},
"curve": {"ease": "in", "duration": 0.16}
},
{"do": "shake", "delay": 0.16, "amount": 14, "duration": 0.35}
],
"children": [
{
"el": "text",
"text": "$text",
"size": "$size",
"weight": 800,
"color": "$color",
"upper": true,
"tracking": 0.04
}
]
}