Float3D data
Wraps anything and holds it in space: a slow 3D tilt and a gentle float, so a still card feels alive.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| tilt | number (0 to 5) | 1 | |
| float | number (0 to 5) | 1 | |
| period | number (1 to 20) | 5 | |
| perspective | number (300 to 4000) | 1400 |
* 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 |
Content it wraps#
It wraps whatever is written in its children.
Example#
{"el": "Float3D", "tilt": 1.5, "children": []}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",
"perspective": "$perspective",
"children": [
{
"el": "box",
"motion": [
{"do": "loop", "kind": "tilt", "amount": "$tilt", "period": "$period"},
{"do": "loop", "kind": "float", "amount": "$float", "period": "=period*0.8"}
],
"children": ["$children"]
}
]
}