Skip to content
Backgrounds

PixelRain

Square pixels fall down a grid and leave fading trails. Pauses off screen.

Download
  • React
  • Tailwind CSS v4

Props

NameTypeDefaultWhat it does
childrenReactNode—Content shown over the rain.
colorstring"#a78bfa"Pixel colour.
backgroundstring"#05040b"Base colour; also fades the trails.
sizenumber10Pixel size in pixels.
densitynumber0.6Share of columns raining at once, 0 to 1.
speednumber11 is the default pace; 2 is twice as fast.
classNamestring""Give it a height here.