The desk toy. Each ball hangs from two strings, and the swing fades out by itself. Click to set it going again.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| balls | number | 5 | Number of balls. |
| ball | number | 46 | Ball diameter in px. |
| length | number | 150 | String length in px. |
| amplitude | number | 38 | Peak swing angle in degrees. |
| className | string | Extra classes added to the outer element. |