Skip to Content

Orbit Items

Orbiting items carousel: a circular stage that carries any items around evenly spaced spokes while counter-rotating them to stay upright. Set size, seconds per turn and direction; stops under reduced motion.

Installation

pnpm dlx shadcn@latest add @01orbital/orbit-items

Usage

import { OrbitItems } from "@/components/motion/orbit-items"
import {
  OrbitRing,
  OrbitRings,
} from "@/components/motion/orbit-rings"
import { ORBITAL_PALETTES } from "@/components/orbs/orbital-palettes"
import { Orbital } from "@/components/orbs/orbital-v4"

const COLORS = {
  alpenglow: {
    ground: "oklch(0.340 0.073 58.7)",
    upper:
      "radial-gradient(ellipse 135% 105% at 50% 35%, oklch(0.636 0.144 48.7) 0%, oklch(0.591 0.136 47.1 / 0.75) 54%, transparent 100%)",
    lower:
      "radial-gradient(ellipse 130% 95% at 50% 80%, oklch(0.481 0.140 11.6) 0%, oklch(0.543 0.151 13.5 / 0.75) 55%, transparent 100%)",
    glow: "oklch(0.611 0.177 13.3)",
    form: "strong",
  },
  tidepool: ORBITAL_PALETTES.tidepool,
  marigold: ORBITAL_PALETTES.marigold,
  apogee: ORBITAL_PALETTES.gold,
  vermillion: ORBITAL_PALETTES.vermillion,
  delft: ORBITAL_PALETTES.delft,
} as const
const PALETTES = [
  "alpenglow",
  "tidepool",
  "marigold",
  "apogee",
  "vermillion",
  "delft",
] as const

export default function OrbitItemsDemo() {
  return (
    <>
      <OrbitRings className="inset-0" masked={false}>
        <OrbitRing
          size={320}
          duration={24}
          accent="oklch(0.72 0.13 62 / 0.4)"
        />
      </OrbitRings>
      <OrbitItems
        size={320}
        duration={24}
        items={PALETTES.map((p) => (
          <Orbital key={p} palette={COLORS[p]} size={40} grain={0.25} />
        ))}
      />
    </>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/orbit-items-demo

Examples

Plum Paper Orbiting Labelsorbit-items-plum-studio

Orbiting labels example showing OrbitItems: pastel process labels circle a fixed studio message on plum paper.

pnpm dlx shadcn@latest add @01orbital/orbit-items-plum-studio

API reference

Items, such as logos or avatars, that circle a round stage. Each item rides a spinning arm and counter-spins, so it stays upright.

The arms take no pointer events, so buttons and links in every item stay clickable. With reduced motion the items stop at evenly spaced positions.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Last updated on