# Orbital Rings

> Thin orbits tipped back in 3D around a glowing core, each with a small light travelling along it. Pure CSS.

Category: Backgrounds · Free · Updated 2026-11-14 · Live demo: https://www.motionkitui.com/components/orbital-rings

## When to use it

Fintech and payments, space and science, platforms that connect many parts, and hero sections that need a calm focal point.

## How it works

Each ring is a circle tipped back with a 3D rotation inside a perspective container, which turns it into an ellipse. Inside each ring, a child rotates continuously with a CSS animation, carrying a small glowing dot round the ring's edge. Outer rings rotate more slowly and each leans slightly differently, so the system reads as 3D. There's no JavaScript running at all.

## Installation

```bash
npx shadcn@latest add https://www.motionkitui.com/r/orbital-rings.json
```

Or copy `components/motionkit/orbital-rings.tsx` below. Requires react and Tailwind CSS v4. Free for personal projects; commercial use needs MotionKit Plus (https://www.motionkitui.com/pricing).

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `color` | `string` | `"#B9C7FF"` | Colour of the lights and the core's glow. |
| `rings` | `number` | `4` | Number of rings, 2 to 6. |
| `duration` | `number` | `10` | Seconds for the innermost light to orbit; 0 holds them still. |
| `tilt` | `number` | `72` | How far the orbits are tipped back, in degrees. |
| `children` | `ReactNode` |  | Your content, layered above. |

## Accessibility

- **Keyboard: Not applicable.** Decorative, nothing to focus. Your content inside stays fully interactive.
- **Screen readers: Pass.** The rings and core are hidden from assistive tech; only your content is read.
- **Reduced motion: Pass.** With reduced motion on, the lights hold still at spread-out positions.
- **Colour contrast: Pass.** Rings are under 22% opacity and the core is small, so text beside or below it keeps its contrast; avoid putting text directly over the core.

## Source

```tsx
"use client";

import type { CSSProperties, ReactNode } from "react";

type OrbitalRingsProps = {
  children?: ReactNode;
  /** Colour of the orbiting lights and the core's glow. */
  color?: string;
  /** Number of rings, 2 to 6. */
  rings?: number;
  /** Seconds for the innermost light to go round once; outer ones take longer. 0 holds them still. */
  duration?: number;
  /** How far the orbits are tipped back, in degrees. */
  tilt?: number;
  className?: string;
};

/**
 * Thin elliptical orbits tipped back in 3D perspective around a softly glowing core, each with a small light
 * travelling along it, the outer ones slower, like a calm diagram of a system in motion. Pure CSS, so it costs
 * almost nothing to run, and the lights hold still for reduced motion.
 */
export function OrbitalRings({ children, color = "#B9C7FF", rings = 4, duration = 10, tilt = 72, className = "" }: OrbitalRingsProps) {
  const count = Math.min(6, Math.max(2, Math.round(rings)));
  return (
    <div className={`relative isolate overflow-hidden bg-[#0C1010] ${className}`}>
      <style>{`
        @keyframes mk-orbit { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } }
        @media (prefers-reduced-motion: reduce) { .mk-orbit { animation: none !important; } }
      `}</style>
      <div aria-hidden className="pointer-events-none absolute inset-0 -z-10 grid place-items-center [perspective:1000px]">
        {/* the core */}
        <div className="absolute size-9 rounded-full" style={{ background: `radial-gradient(circle at 35% 30%, color-mix(in oklab, ${color} 85%, white), color-mix(in oklab, ${color} 45%, #0C1010) 55%, #0C1010 100%)`, boxShadow: `0 0 50px 8px color-mix(in oklab, ${color} 22%, transparent), inset 0 0 0 1px rgb(255 255 255 / 0.12)` }} />
        {Array.from({ length: count }, (_, i) => {
          const size = 34 + i * (60 / count);
          const seconds = duration * (1 + i * 0.55);
          // each light starts a different share of the way round (about 100° apart), so they never bunch up
          const offset = ((i * 0.28 + 0.05) % 1) * seconds;
          // each ring leans a little differently, so the system reads as 3D rather than flat
          const lean = (i - (count - 1) / 2) * 7;
          return (
            <div
              key={i}
              className="absolute aspect-square [transform-style:preserve-3d]"
              style={{ width: `${size}%`, transform: `rotateX(${tilt}deg) rotateY(${lean}deg)` } as CSSProperties}
            >
              <div className="absolute inset-0 rounded-full border" style={{ borderColor: `color-mix(in oklab, ${color} ${22 - i * 2}%, transparent)` }} />
              <div
                className="mk-orbit absolute inset-0"
                style={{
                  // a negative delay starts each light part-way round, so they're spread out; when still, the same
                  // spread comes from a fixed angle instead
                  animation: duration ? `mk-orbit ${seconds}s linear ${-offset}s infinite` : undefined,
                  transform: `rotateZ(${((i * 0.28 + 0.05) % 1) * 360}deg)`,
                }}
              >
                <span
                  className="absolute left-1/2 top-0 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full"
                  style={{ background: color, boxShadow: `0 0 12px 3px color-mix(in oklab, ${color} 60%, transparent)` }}
                />
              </div>
            </div>
          );
        })}
      </div>
      <div aria-hidden className="pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(ellipse_at_center,transparent_45%,#0C1010_100%)]" />
      {children}
    </div>
  );
}
```
