Skip to content
Backgrounds27 / 118

Cipher Rain

A living curtain of code. Columns of digits, hex and technical symbols rain down through three layers of depth: near ones large and electric cyan, far ones small and drifting in a blue-violet haze, every column led by a white-hot head and a trail that re-ciphers as it falls, lifted by a real bloom while the blacks stay black. Your cursor is a decoding lens that magnifies the rain and makes it brighten and scramble while the layers shift in parallax, a click sends a shockwave that bends and lights the rain, scrolling makes it rush, and an optional word is spelled out in glyphs, lit by every drop that runs through it.

WebGL23 depth layersDecoding lensReal bloomGSAPReduced-motion safe
Decode with the lensClick for a shockwave

Tweak

LIVE

Colour

#3ee6ff
#5a5cff
#effcff
#020509

Rain

0.55
1.00
0.80

Layout

0.30

Motion

Interactive

Cursor decoding lens, click shockwave

Props

13 props
  • colorstring
    Colour of the near rain.default "#3ee6ff"
  • depthColorstring
    Colour of the far rain, deep in the haze.default "#5a5cff"
  • headColorstring
    Colour of the white-hot heads.default "#effcff"
  • backgroundstring
    Background colour.default "#020509"
  • textstring
    A word the rain spells out in glyphs. Empty for none.default ""
  • densitynumber
    How many columns are falling, 0 to 1.default 0.55
  • speednumber
    Speed of the rain.default 1
  • glownumber
    Strength of the bloom around the heads.default 0.8
  • focusnumber
    Calms the centre so a headline on top stays readable, 0 to 1.default 0.3
  • interactiveboolean
    Cursor lens and click shockwave.default true
  • scrollerElement | null
    Scroll container, if the page does not scroll the window.
  • childrenReactNode
    Foreground content, drawn above the rain.
  • classNamestring
    Size it, e.g. h-screen w-full.