0Views
0Copies
Variants
Loading preview...
API Reference
Props for <BeadCapsule />
| Prop | Type | Default | Description |
|---|---|---|---|
| backgroundColor | string | "#0b0f0d" | The surface behind the capsule, filling its container. Keep it dark so the clear glass and its reflections show. |
| fastColor | string | "#1fbf75" | The fast layer's beads; the glass takes a pale tint of this colour. |
| pearlColor | string | "#f2ede4" | The other layer's beads. |
| reflectionColor | string | "#2a2f36" | The dim surround the glass reflects; brighter gives a brighter rim. |
| floorColor | string | "rgba(255, 255, 255, 0.12)" | The soft light on the floor under the capsule; fully transparent hides it. |
| Prop | Type | Default | Description |
|---|---|---|---|
| mix | number | 42 | Share of beads in the fast layer; a change refills the capsule like a level rising or falling. |
| beadShape | 'sphere' | 'grain' | "sphere" | What each bead looks like: round beads or long rice-like grains. Both pour and settle the same way, each grain at its own angle. |
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 520 | The component's width and height; it shrinks to fit a smaller parent or screen. |
| capsuleSize | number | 76 | The capsule's length, as a share of the component. |
| thickness | number | 0.95 | How wide the pill is for its length; the beads follow. |
| beadSize | number | 8.5 | A bead's diameter, as a share of the capsule's width; smaller gives more, finer beads. |
| fill | number | 58 | How full the capsule is. |
| tilt | number | -50 | Resting angle: negative leans the top to the right, 0 stands it upright. |
| lean | number | 16 | How far the top end leans toward the viewer. |
| rock | number | 10 | Idle rocking either way; 0 holds it still. |
| rockPeriod | number | 10 | How long one rock takes. |
| spin | number | 0 | Slow turn around its own long axis; any turn slowly mixes the two layers. |
| hover | number | 7 | How far it tips toward the pointer. |
| drag | number | 70 | How far 100 px of drag turns it. |
| coast | number | 1.2 | How long a flung capsule coasts before it drifts back to its resting angle. |
| gravity | number | 15 | Pull on the beads; higher pours and settles them faster. |
| shake | number | 0.05 | How hard a tap throws the beads around. |
| draggable | boolean | true | Dragging the capsule turns it, and the beads pour and mix. |
| tapToShake | boolean | true | A quick tap on the capsule shakes its beads. |
| Prop | Type | Default | Description |
|---|---|---|---|
| tint | number | 0.14 | How strongly the glass is tinted where you look straight through it. |
| tintEdge | number | 0.6 | How strongly the glass is tinted along its edges. |
| shine | number | 1.1 | Strength of the reflections on the glass. |
S
Motion score
Compositor-only
- Category
- 3D Elements
- Framework
- React
- Published
- Dec 4, 2026
- Dependencies
- Variants
Bead Capsule
A 3D glass capsule filled with two layers of beads that pour, slosh and mix under real physics. It rocks gently, tips toward the pointer, turns when dragged and shakes its beads on a tap, and a new mix refills it like a level rising. The bead colours, the mix, the glass, the pill's shape and every motion can be set.