Flickering Grid

Motion

Flickering Grid is a React canvas background of small squares whose opacity flickers at random, with square size, gap, flicker chance, color and radial fade mask props.

src/registry/premium/flickering-grid.tsx/r/flickering-grid.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/flickering-grid.json

Usage#

tsx
import { FlickeringGrid } from "@/components/ui/flickering-grid"

export function Example() {
  return <FlickeringGrid />
}

API reference#

FlickeringGrid props
PropTypeDefault
squareSizenumber4
gapnumber6
flickerChancenumber0.4
maxOpacitynumber0.4
colorstring"var(--accent)"
mask"radial" | "none""radial"
classNamestring-
childrenReact.ReactNode-

Dependencies#

npm

lucide-reactmotion

Built from

All Animated React components