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
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
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
Prop | Type | Default | Description |
---|---|---|---|
title | string | "Background Circles" | The main title text displayed in the center |
description | string | "Optional Description" | The description text displayed below the title |
className | string | undefined | Additional CSS classes to apply to the component |
variant | keyof typeof COLOR_VARIANTS | "octonary" | The color variant to use for the circles and gradients |
Color Variants
primary
- Emerald and cyan gradientsecondary
- Violet and fuchsia gradienttertiary
- Orange and yellow gradientquaternary
- Purple and pink gradientquinary
- Red and rose gradientsenary
- Blue and sky gradientseptenary
- Gray monochromeoctonary
- 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
Boxes
Interactive isometric grid with vibrant hover effects. This React component creates stunning 3D-perspective layouts perfect for Next.js applications requiring dynamic visual engagement and professional depth.
Gradient Animation
Interactive gradient backgrounds with mouse tracking. Perfect for React applications requiring dynamic animated effects with Next.js integration and TypeScript support.