Command Palette

Search for a command to run...

Docs
Background Circles

Background Circles

Rotating gradient circles with orbiting particles and breathing animations

Background Circles

Rotating gradient arcs with orbiting particles

Installation

Usage

import { BackgroundCircles } from "@/components/motionx/background-circles";

Basic usage

<div className="h-screen w-full">
  <BackgroundCircles>
    <h1 className="text-4xl font-bold text-foreground">Your Content</h1>
  </BackgroundCircles>
</div>

Custom color

<BackgroundCircles
  color="260 80% 60%"
  circleCount={4}
  speed={0.5}
  variant="intense"
>
  <h1 className="text-foreground text-4xl font-bold">Purple Orbits</h1>
</BackgroundCircles>

Subtle variant

<BackgroundCircles circleCount={3} variant="subtle" vignette={false}>
  <p className="text-muted-foreground">Minimal backdrop</p>
</BackgroundCircles>

Props

PropTypeDefaultDescription
childrenReactNodeContent rendered on top of the effect
classNamestringContainer CSS classes
circleCountnumber5Number of concentric circles
colorstring"180 80% 50%"HSL values for the base color (e.g. "180 80% 50%")
alternatebooleantrueReverse rotation on every other circle
speednumber1Speed multiplier — lower is slower
vignettebooleantrueShow a radial vignette overlay
variant"default" | "subtle" | "intense""default"Controls opacity and scale intensity

Tip: Pass the color prop as HSL values without the hsl() wrapper — e.g. "180 80% 50%" for cyan or "260 80% 60%" for purple.