Background
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.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/background-boxes.json
npx shadcn@latest add https://www.shadcn.io/registry/background-boxes.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/background-boxes.json
bunx shadcn@latest add https://www.shadcn.io/registry/background-boxes.json
Features
- 3D isometric grid with CSS transforms creating depth perspective
- Interactive hover effects with instant color changes on 15,000+ cells
- Nine color palette including sky, pink, green, yellow, red, purple, blue, indigo, violet
- Performance optimized using Framer Motion with zero-duration transitions
- Plus icon markers on alternating grid positions for visual structure
- TypeScript support with complete interface definitions
- Overlay compatible designed to work with content layered on top
- Responsive scaling adapts to different container sizes
Examples
Dark Variant
Use Cases
This free open source React component works well for:
- Hero sections - Interactive backgrounds for landing pages built with Next.js
- Portfolio sites - 3D grid aesthetics for creative showcases
- Tech presentations - Professional backgrounds for demos and conferences
- Gaming interfaces - Grid-based themes for strategy games and tools
- Data dashboards - Structured backgrounds that support chart overlays
- Developer documentation - Technical grid patterns for coding resources
Implementation Notes
- Component uses absolute positioning within a relative container
- Grid consists of 150×100 cells (15,000 total interactive elements)
- 3D effect created with
skewX(-48deg)
,skewY(14deg)
, andscale(0.675)
- Hover colors are randomly selected from the nine-color palette
- Plus icons appear on even row/column intersections only
- Compatible with shadcn/ui and Tailwind CSS
- Requires content to have higher z-index to appear above grid
Beams With Collision
Dynamic energy beams that explode on impact. This React component creates spectacular particle effects when animated beams collide with surfaces, perfect for Next.js gaming interfaces and interactive showcases.
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.