Back

Retro Grid

Satu Visual ComponentNew

A synthwave perspective grid scrolling toward the horizon.

Retro Grid

Installation

Add it with the CLI:

Terminal

$

Or open the Code tab above and copy it in manually — it relies on the standard cn() helper from @/lib/utils.

Usage

A dramatic dark hero backdrop. The grid scrolls in perspective.

Props

PropTypeDefaultDescription
childrenReactNodeForeground content.
classNamestringExtra classes (set height here).
colorstringrgba(139,92,246,0.5)Grid line color.

Requirements

No external npm dependencies. ✨

Add this to your Tailwind config:

tailwind.config.ts
// theme.extend keyframes: { "grid-scroll": { "0%": { transform: "translateY(0)" }, "100%": { transform: "translateY(40px)" }, }, },