Background Cubes Grid

A grid of 3D cubes that ripples under the cursor. Use the flat isometric field or a tilted perspective grid with glowing crests.

Page your team on Discord, Telegram, WhatsApp, Google Chat, Mattermost and any webhook at once.

Relay is incident alerting for small engineering teams. Route alerts by severity, run on-call rotations, and keep one clean thread per incident.

Free for up to 5 seats · No credit card required

Installation

Run the following command

npx shadcn@latest add @aceternity/background-cubes-grid

Examples

Isometric

Page your team on Discord, Telegram, WhatsApp, Google Chat, Mattermost and any webhook at once.

Relay is incident alerting for small engineering teams. Route alerts by severity, run on-call rotations, and keep one clean thread per incident.

Free for up to 5 seats · No credit card required

Perspective

Page your team on Discord, Telegram, WhatsApp, Google Chat, Mattermost and any webhook at once.

Relay is incident alerting for small engineering teams. Route alerts by severity, run on-call rotations, and keep one clean thread per incident.

Free for up to 5 seats · No credit card required

Props

The background fills its nearest positioned parent (absolute inset-0). Put it inside a relative container and place your content above it. It listens to the pointer on the window, so content on top does not block the ripples.

Shared

PropTypeDefaultDescription
variant"isometric" | "perspective""isometric"Picks the flat isometric field or the tilted 3D grid.
classNamestring-Extra classes for the outer container.
amplitudenumberPer variantWave height, in tiles.
glownumberPer variantStrength of the light on the wave crests. 0 turns it off.
idleRipplesbooleantrueDrops random ripples when the pointer stops.

Isometric

PropTypeDefaultDescription
cellSizenumber150On-screen width of one tile, in pixels.
gapnumber0.025Seam between cubes, as a fraction of a tile.
topColorstring"#fafaf9"Top face color.
leftColorstring"#e7e5e4"Left side face color.
rightColorstring"#d6d3d1"Right side face color.
amplitudenumber0.7Wave height, in tiles.
speednumber7Wave speed, in tiles per second.
dampingnumber0.08Wave energy kept per second (0 to 1). Lower settles faster.
idleDelaynumber1.5Seconds the grid stays flat before random ripples start.
glowColorstring"#a8a29e"Color of the light that follows the ripple.
glownumber0.5Glow strength.

Perspective

PropTypeDefaultDescription
gridSizenumber44Number of cubes per side.
gapnumber0.08Space between cubes, in world units.
baseColorstring"#2a2a30"Cube color at rest.
waveColorstring"#ff6a2b"Color of the wave crests.
backgroundColorstring"#0b0b0d"Scene background and fog color.
amplitudenumber0.5Wave height.
glownumber0.9Amount of light the crests emit.
tiltnumber0.7Camera tilt from top-down, in radians.

Build websites faster and 10x better than your competitors with

Aceternity UI Pro

Next.js 15, Tailwind CSS v4 and Motion for react powered templates

200+ templates and blocks combined

Ready to copy paste component blocks, save days of development time

Aceternity UI Pro Demo - Light Mode

Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

A product by Aceternity
Building in public at @mannupaaji

© 2026 Aceternity Labs LLC. All Rights Reserved.