Brickslab.

@brickslab/ui-web

SVG grid cells with flicker animation and customizable cell size and color

Flickering Grid

Props

PropTypeDéfautRequisDescription
cellSizenumber50Size of each grid cell in pixels
colorstring"rgba(255, 255, 255, 0.1)"Color of the grid cells
flickerRatenumber0.5Speed of the flicker animation (lower = faster)
roundedbooleanfalseApply border-radius to cells
opacitynumber0.5Opacity of the grid (0-1)

Usage

tsx
import { FlickeringGrid } from "@brickslab/ui-web";

export function MyComponent() {
  return (
    <div className="relative w-full h-screen">
      <FlickeringGrid cellSize={50} color="rgba(255, 255, 255, 0.1)" />
      <div className="absolute inset-0 flex items-center justify-center">
        <h1 className="text-4xl font-bold text-white">Flickering Grid</h1>
      </div>
    </div>
  );
}

Variations

Small Cell Size

Fine Grid

Colored Flicker

Blue Grid