StealThis .dev

Retro Grid

A perspective grid background with vanishing-point effect, inspired by retro 80s aesthetics. CSS transforms create converging grid lines with a glowing horizon.

Open in Lab
css javascript vue svelte
Targets: TS JS HTML React Vue Svelte

Code

Retro Grid

A perspective grid background with converging lines and a glowing horizon, inspired by retro 80s / synthwave aesthetics.

How it works

A flat grid is drawn using repeating linear-gradient (horizontal and vertical lines), then a CSS perspective + rotateX transform tilts it into 3D space. A gradient overlay creates the horizon glow effect where the lines converge. An optional CSS animation scrolls the grid for a moving-through-space illusion.

Customization

VariableDefaultDescription
--retro-colorrgba(139,92,246,0.3)Grid line color
--retro-size60pxGrid cell size
--retro-glowrgba(139,92,246,0.5)Horizon glow color

When to use it

  • Hero sections for creative or tech products
  • Music/game-themed landing pages
  • Retro-styled portfolios
  • Conference or event pages