Building CubePRO
A dotted cube that assembles layer by layer while it turns, then rebuilds.
Code
2 files · 60 lines of TypeScriptPRO
Building Cube is part of Pro
Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.
Motion notes
- Dots drop into their slots one layer at a time, bottom to top, with a short ease-out each: construction you can follow.
- The finished cube holds for a beat, then fades out to restart, so the loop never looks like it rewinds.
- Dots are depth-sorted every frame so nearer ones overlap farther ones as the cube turns.
Usage
Example
<StatusPill icon={<BuildingCube size={32} />} label="Building" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 32 | Size in px. |
| grid | number | 5 | Dots per cube edge. |
| cycle | number | 3.6 | Seconds per build. |
| className | string | — | Classes for the canvas. |