About
Canvas grid of squares that flicker in and out of opacity at random each frame, pausing automatically via IntersectionObserver when scrolled off-screen and resizing to fit its container via ResizeObserver.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Flickering Grid to your project and fits it to your theme.
Code
How Flickering Grid is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { FlickeringGrid } from "@/components/ui/fancy-flickering-grid"
export default function FlickeringGridDemo() {
return (
<div className="relative h-80 w-full max-w-2xl overflow-hidden rounded-lg">
<FlickeringGrid color="#6366f1" maxOpacity={0.2} squareSize={4} gridGap={6} />
</div>
);
}




