OrbitingCircles
Arrange child elements evenly along a circular orbit path and animate them in a continuous revolution. Works great with icons, images, or any inline content.
Import
import { OrbitingCircles } from "@animui/ui";Basic
Provide child elements — icons, emoji, or images — and they will be distributed evenly around the orbit at the given radius.
🌟
🔥
💎
🚀
⚡
Reverse orbit
Set reverse to true to spin the orbit counter-clockwise. Useful when composing multiple concentric rings.
🌟
🔥
💎
🚀
⚡
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Elements to place along the orbit path, distributed evenly. |
radius | number | 80 | Orbit radius in pixels from center. |
duration | number | 20 | Time in seconds for a full orbit revolution. |
reverse | boolean | false | Reverse the orbit direction. |
iconSize | number | 30 | Width and height of each orbiting item in pixels. |
className | string | — | Additional classes for the container. |