StealThis .dev

Orbiting Circles

Multiple circles orbiting around a central element at different speeds and radiuses using pure CSS animation.

Open in Lab
css javascript vue svelte
Targets: TS JS HTML React Vue Svelte

Code

Orbiting Circles

A mesmerizing orbital animation where multiple circles revolve around a central element at varying speeds, radiuses, and directions. Built with pure CSS keyframe animations.

How it works

  1. A central element is positioned at the midpoint of the container
  2. Each orbiting circle is absolutely positioned at the center, then offset via translateX() for radius
  3. A @keyframes rotation animation spins each circle around the center point
  4. Different animation-duration values and optional reverse direction create visual depth

Customization

  • Adjust the number of orbiting items and their content (icons, text, images)
  • Control orbit radius, speed, and direction per circle
  • Change colors, sizes, and add trails or glow effects

When to use it

  • Hero section decorative backgrounds
  • Feature highlights with orbiting icons
  • Loading or status indicators
  • Interactive data visualizations