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
text0.60
rain0.12
wind0.60
wetness0.30
evaporation1.00
fallcolorUsage
<Drench />Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
text | string | "RAIN" | Text. |
rain | number | 0.6 | Rain. Range 0 to 1. |
wind | number | 0.12 | Wind. Range -1 to 1. |
wetness | number | 0.6 | Wetness. Range 0 to 1. |
evaporation | number | 0.3 | Evaporation. Range 0 to 1. |
fall | number | 1 | Fall speed. Range 0.2 to 3. |
color | string | "#9fd8ff" | Water. |
as | ElementType | "p" | The element the real text renders as, e.g. h1 for a hero heading. |
seed | number | 1 | Fixes every drop, bead and drip. |
freezeAt | number | — | Simulate this many frames, draw once and hold (for snapshots). |
fontFamily / fontWeight | string / number | "system-ui, sans-serif" / 800 | Face of the letters; heavy weights hold more water. |
disabled | boolean | false | Holds a still, soaked state with no falling rain. |
respectReducedMotion | boolean | true | Under 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.