ZeroGravity UI

Typographyexperimental

Drench

Rain-revealed text

A word that is already there, and rain that finds it.

RAIN

The text stays real text: the canvas is decoration, and screen readers get the word.

Customize

Weatherset rain to 0 and watch the letters dry out
text
0.60rain
0.12wind
0.60wetness
0.30evaporation
1.00fall
color

Usage

TSX
<Drench />

Generated from the controls above. Only props that differ from their defaults are shown.

Props

13 documented props on Drench
PropertyTypeDefaultDescription
textstring"RAIN"Text.
rainnumber0.6Rain. Range 0 to 1.
windnumber0.12Wind. Range -1 to 1.
wetnessnumber0.6Wetness. Range 0 to 1.
evaporationnumber0.3Evaporation. Range 0 to 1.
fallnumber1Fall speed. Range 0.2 to 3.
colorstring"#9fd8ff"Water.
asElementType"p"The element the real text renders as, e.g. h1 for a hero heading.
seednumber1Fixes every drop, bead and drip.
freezeAtnumber—Simulate this many frames, draw once and hold (for snapshots).
fontFamily / fontWeightstring / number"system-ui, sans-serif" / 800Face of the letters; heavy weights hold more water.
disabledbooleanfalseHolds a still, soaked state with no falling rain.
respectReducedMotionbooleantrueUnder prefers-reduced-motion, show the still soaked state.

Dependencies

0 external runtime dependencies

Ships with nothing but React.

Experimental: still under evaluation and not part of the published package yet.