Skip to content

Orbiting Circles for React

OrbitingCircles is a React effect that spins icons or avatars around a centre on rings, using transform only. Use it for integration sections; it holds still on hover and focus and is static under reduced motion.

npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/orbiting-circles.json
Core
  • A
  • B
  • C
  • D
  • E
  • F

Two rings

Stack rings with different radius, duration, reverse and startAngle around a central card. Give the ring a label when the items mean something: it then becomes a labelled list. Glass items use level-2 glass; keep a handful in view.

Core
  • A
  • B
  • C
  • D
  • E
  • F

Files to copy

5 folders · 4 files · 4 packages
From theme/src/
  • components/orbiting-circles/
  • hooks/{use-media-query.ts, use-preferences.ts}
  • motion/gate.ts
  • lib/cn.ts
  • styles/
shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/orbiting-circles.jsonRegistry item: orbiting-circles. The styles need the Tailwind v4 glass UI setup.
The examples also use
  • components/glass-card/
  • components/switch/
  • hooks/{use-direction.ts, use-latest.ts}
  • motion/{light-follower.ts, tokens.ts}
  • lib/{field-control-shell.tsx, form.ts, heading.ts, motion-props.ts, state-light.tsx}
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/glass-card.json https://lokendra-builds.github.io/sheenui/r/switch.json
Packages
pnpm add @base-ui/react clsx motion tailwind-merge

Props

PropTypeDefaultDescription
children (required)ReactNodeNoneThe orbiting items (icons, logos, avatars): each child sits on the ring, evenly spaced.
radiusnumber120Radius of the ring in px, from the centre of the parent.
durationnumber28Seconds one full turn takes. Slow reads as calm: 20 to 40 suits a hero.
reversebooleanfalseTurn anticlockwise instead of clockwise.
startAnglenumber0Angle of the first item in degrees, clockwise from the top. The others follow evenly; use it to offset one ring from another.
pathbooleantrueDraw the faint ring the items sit on.
pauseOnHoverbooleantrueHold the ring still while the pointer or keyboard focus is on one of its items, so an item is never a moving target.
labelstringNoneAccessible name for the group. Set it when the items mean something (integrations, team) and the ring is exposed as a labelled list; without it the whole ring is decorative and hidden from assistive technology.
pausedbooleanfalseHold the ring where it is (it carries on from there when unpaused).
classNamestringNoneAdds extra classes to the overlay. It fills a relative parent; the ring is centred in it.
itemClassNamestringNoneClasses for every item's box (sizing, glass, rounding).
styleCSSPropertiesNoneApplies an inline style to the overlay.

Keyboard

KeysAction
TabMoves through any links or buttons inside the items, in their order. The ring itself is not focusable.
Focuson an itemHolds the ring still (pauseOnHover) so nobody chases a moving control.

Accessibility

  • Without label the ring is decorative and aria-hidden; never put interactive items in a hidden ring. With label it is a labelled list with one item per child, in order.
  • pauseOnHover holds the ring while the pointer or focus is on an item; paused gives a page a stop control (WCAG 2.2.2). It also rests off-screen and in hidden tabs.
  • Reduced motion: the items rest on the ring, still, in the same places.
  • Two transform rotations per item on the compositor (the ring turns, the item turns back); nothing blurs, masks or filters the items.

When to use the orbiting circles effect

  • Use it in a works-with or integrations section: logos circling your product mark on one or two rings.
  • Stack rings with different radius, duration, reverse and startAngle for a system of orbits around a central glass card.
  • Pass label when the items mean something so the ring becomes a labelled list; without it the ring is decorative and hidden.
  • Skip it when people must click items quickly; it holds still on hover and focus, but a static grid is easier to use.
  • Pair it with GlassCard in the centre, Avatar for team members and itemClassName for glass items.

Frequently asked questions

19 effects pages in all: browse them on All effects.

By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .