Command Palette
Search for a command to run

Flickering Grid

A flickering grid background made with SVGs, fully customizable using Tailwind CSS.

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/flickering-grid.json

Examples

Basic Usage

Props

FlickeringGrid

A component for creating a flickering grid background.

NameTypeDefaultDescription
class
string "" Additional CSS classes to apply
squareSize
number 4 The size of each square in the grid
gridGap
number 6 The gap between squares in the grid
flickerChance
number 0.3 The chance of each square flickering
color
string rgb(0, 0, 0) The color of the squares
width
number The width of the grid
height
number The height of the grid
maxOpacity
number 0.3 The maximum opacity of the squares