Grid Press Background
A drifting grid of outlined boxes on canvas where random cells glow and the whole grid presses inward like cloth under the cursor, then springs back. Wrap your content in it or drop it behind any section. Fully self-contained: one component, one canvas, no configuration files.
Pressable grid
Push the grid. It springs back.
Move your cursor and the grid presses inward like cloth under a finger. Random cells glow as it drifts — all drawn on one canvas, with zero React re-renders while it animates.
Hover to pressClick to boostCanvas 2D
Installation
- 1
Install the component:
- 2
Usage:
jsxapp/page.jsx
import GridPressBackground from "@/components/ui/grid-press-background";// Wrap your content — the grid fills the wrapper automatically<GridPressBackground className="flex min-h-screen flex-col justify-center"> <h1 className="text-4xl font-bold text-white">Your content</h1></GridPressBackground>// Or drop it behind an existing section as a pure layer<section className="relative isolate min-h-screen overflow-hidden bg-neutral-950"> <GridPressBackground className="absolute inset-0" fadeEdges /> <div className="relative z-10">...content...</div></section>