BackgroundsNew

Flickering Grid

A grid of tiny squares that softly flicker at random. A calm canvas background.

Customize

color

Based on Flickering Grid (MIT license) · Terms of use

More in Pro

View all

Props

8 properties
PropertyTypeDefaultDescription
squareSizenumber4Size of one square in pixels.
gridGapnumber6Gap between squares in pixels.
flickerChancenumber0.3How often squares flicker. Higher is busier.
colorstring"rgb(255, 255, 255)"Square color.
maxOpacitynumber0.3Maximum square opacity.
widthnumber—Width in pixels. Without it the grid fills its container.
heightnumber—Height in pixels. Without it the grid fills its container.
classNamestring—Tailwind classes for the wrapper.

Dependencies

2 required packages

npm install clsx tailwind-merge

Related components

View all