Components

Orbiting Circles

Orbiting icons for React and Tailwind CSS: any children travel around a shared centre on a circular path, spaced evenly and always upright. Stack several rings with different radii, speeds and directions for integration showcases, tech-stack heroes and team clouds.

  • Multiple rings
  • Icons stay upright
  • Pause on hover & focus
  • Pauses off-screen
  • prefers-reduced-motion
DuskUI

Installation

$ npx shadcn@latest add https://duskui.com/r/orbiting-circles.json

Usage

stack.tsx
import { Cloud, Database, Globe } from "lucide-react"
import { OrbitingCircles } from "@/components/dusk/orbiting-circles/orbiting-circles"

export function Stack() {
  return (
    <div className="relative flex h-96 items-center justify-center">
      <span className="relative z-10 text-xl font-semibold">Dusk</span>
      <OrbitingCircles radius={90}>
        <Globe />
        <Database />
        <Cloud />
      </OrbitingCircles>
      <OrbitingCircles radius={150} duration={30} reverse>
        {/* … */}
      </OrbitingCircles>
    </div>
  )
}

Examples

Pause on hover

With pauseOnHover the ring stops while the pointer is over an item or an item has keyboard focus, so the buttons are easy to hit. Style the ring with pathClassName.

Design team

6 members

Speeds & start angles

One item per ring with its own radius, duration, iconSize and startAngle. Purely decorative rings can take aria-hidden.

API Reference

Each OrbitingCircles fills its nearest positioned parent and centres itself; put the centre content in that parent with relative z-10. Also accepts any div attribute.

PropTypeDefaultDescription
childrenReactNode—Items to orbit, spaced evenly around the ring.
radiusnumber120Orbit radius in px.
durationnumber20Seconds per lap.
reversebooleanfalseOrbit counter-clockwise.
startAnglenumber-90Angle of the first item in degrees (0 = right, -90 = top).
pathbooleantrueDraw the orbit ring.
iconSizenumber40Width and height of each item slot in px.
pauseOnHoverbooleanfalseStop while an item is hovered or focused.
pathClassNamestring—Classes for the orbit ring.
itemClassNamestring—Classes for each item slot.

Accessibility

  • Items are rendered once, in source order, so screen readers and the Tab key meet them in a predictable sequence regardless of where they are on the ring.
  • pauseOnHover also pauses on keyboard focus, so a focused link never moves away from its focus ring.
  • The ring is aria-hidden. Give icon-only items an accessible name, or mark a purely decorative orbit aria-hidden.
  • One motion value drives every item, so React never re-renders while it spins, and the animation pauses off-screen and in hidden tabs.
  • With prefers-reduced-motion the items rest, evenly spaced, at their start angles.