Skip to documentation content

Orbiting Circles

Turn a set of items around a shared center, with optional orbit rings.

orbiting-circles-demo

Overview

Orbiting Circles spaces its children evenly around a circle and turns them slowly around the center. Use it to show integrations, team members, or supported platforms around a central product. Render several with different radii, durations, and directions inside one box to build concentric rings. Items stay upright as they travel.

Installation

npx honestui@latest add orbiting-circles

Usage

import { OrbitingCircles } from "@/components/animated/orbiting-circles"

<div className="relative flex h-80 items-center justify-center">
  <span>Integrations</span>
  <OrbitingCircles radius={64} iconSize={30}>
    <GithubIcon />
    <SlackIcon />
  </OrbitingCircles>
  <OrbitingCircles radius={128} reverse duration={30}>
    …
  </OrbitingCircles>
</div>

The orbit is centered in its nearest positioned ancestor. Keep that box at least 2 × radius + iconSize wide and tall, or clip it with overflow-hidden.

Accessibility

The ring is decorative. Items remain in the document and keep their own accessible names, but moving targets are hard to click, so avoid putting the only path to an action on an orbit. When reduced motion is requested, items stop in their evenly spaced positions.

API Reference

PropTypeDefaultDescription
children*ReactNode–Items placed on the orbit.
radiusnumber120Orbit radius in px.
durationnumber24Seconds per revolution.
reversebooleanfalseOrbits counterclockwise.
pathbooleantrueDraws the orbit as a faint ring.
iconSizenumber32Width and height of each item slot in px.
startAnglenumber-90Angle of the first item at rest, in degrees.
pathClassNamestring–Classes for the orbit ring.
classNamestring–Classes for the orbit layer.