Background

Circles

Hypnotic rotating circles that mesmerize and captivate. This React component creates ethereal orbital animations perfect for Next.js meditation apps, creative portfolios, and spiritual wellness platforms.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/background-circles.json
npx shadcn@latest add https://www.shadcn.io/registry/background-circles.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/background-circles.json
bunx shadcn@latest add https://www.shadcn.io/registry/background-circles.json

Features

  • Eight color variants including emerald/cyan, violet/fuchsia, and six additional themes
  • Smooth rotation animations with 5-second cycles and subtle scale effects using Framer Motion
  • Responsive design with automatic scaling (max 80vh/80vw) to fit all screen sizes
  • Animated grid background with moving diagonal patterns for added visual depth
  • Customizable content with configurable title and description text
  • TypeScript support with full type definitions and IntelliSense
  • shadcn/ui integration using Tailwind CSS design tokens
  • Performance optimized with hardware-accelerated CSS transforms

Examples

Interactive Variant Switcher

Loading component...

Use Cases

This free open source React component works well for:

  • Landing pages - Hero sections with calming animated backgrounds
  • Creative portfolios - Subtle backgrounds that don't compete with content
  • Wellness apps - Meditation and mindfulness interfaces built with Next.js
  • Dashboard layouts - Ambient backgrounds for data-heavy interfaces
  • Music applications - Visual accompaniment for audio players
  • Loading states - Engaging animations during content loading

API Reference

BackgroundCircles

PropTypeDefaultDescription
titlestring"Background Circles"The main title text displayed in the center
descriptionstring"Optional Description"The description text displayed below the title
classNamestringundefinedAdditional CSS classes to apply to the component
variantkeyof typeof COLOR_VARIANTS"octonary"The color variant to use for the circles and gradients

Color Variants

  • primary - Emerald and cyan gradient
  • secondary - Violet and fuchsia gradient
  • tertiary - Orange and yellow gradient
  • quaternary - Purple and pink gradient
  • quinary - Red and rose gradient
  • senary - Blue and sky gradient
  • septenary - Gray monochrome
  • octonary - Alternative red and rose gradient

Implementation Notes

  • Place component within a relative positioned container
  • Circles automatically scale to fit viewport (max 80vh/80vw)
  • Uses Framer Motion for smooth animations
  • Compatible with shadcn/ui design system
  • Supports both light and dark themes