Orbiting Circles

A component that displays icons or elements orbiting in a circular path with customizable radius, duration, and direction.

Svelte

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/orbiting-circles.json

Usage

<script lang="ts">	import { OrbitingCircles } from "#lib/components/magic/orbiting-circles/index.js";</script>
<div class="relative h-64">	<OrbitingCircles>		<span class="rounded-full border p-2">A</span>	</OrbitingCircles></div>

Examples

Bottom Fade

Monochrome satellite icons follow a visible ring that fades at the bottom.

Opposite Directions

Colored developer icons orbit a processor in opposite directions with faint tinted backgrounds.

Offset Orbit

Five weather icons orbit a central sun with light tints and an offset circular path.

Props

Orbiting Circles

A component that creates orbiting animations with customizable paths and behaviors.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply to the orbiting element
reversebooleanfalseReverse the direction of orbit (counter-clockwise)
durationnumber20Base duration of one complete orbit in seconds
radiusnumber160Radius of the orbit path in pixels
pathbooleanfalseShow the dotted circular orbit path
iconSizenumber30Size of the orbiting icon/element in pixels
speednumber1Speed multiplier for the orbit animation
anglenumber0Starting angle of the orbit in degrees
delaynumber0Animation delay in seconds (negative values start the animation earlier)
childrenSnippet-Snippet content to render inside the orbiting element