Orbiting Circles
ProRevolves items around a center while keeping each one upright.
Installation
pnpm dlx shadcn@latest add @viewport/orbiting-circles
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| radius | numberOrbit radius in pixels. | 90 |
| duration | numberSeconds for one revolution. | 24 |
| reverse | boolean | — |
| path | booleanDraw the orbit path. | true |
| itemSize | numberSize of each orbiting item in pixels. | 40 |
| className | string | — |
| children* | React.ReactNode | — |
Accessibility
- Items stay upright and readable throughout the orbit.
- Pauses under reduced motion.
- Pure CSS animation.