Put the hero content inside as children: they sit on top of the moving picture. Give the root a height.
The sample also uses Button. One command adds them with this item:
glyph-rain-hero.tsx
GlyphRainBackground
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| palette | readonly string[] | PALETTE | Any CSS colors (var(--token) too): the ground, the second ground, then the look colors. |
| speed | number | — | The time scale: 1 (default) is the designed speed, 0 a still frame. |
| paused | boolean | — | True holds the current frame. Default false. |
| trigger | "hover""loop" | — | When it moves: loop (default) or hover. It draws its first frame either way. |
| seed | number | — | Another seed gives another field of the same look. Default 0. |
| press | boolean | — | True: a press on the box sends a ripple through the field where it lands; a press on a button or a link inside does not. Default false. |
| pointer | boolean | — | True: the field leans toward a mouse or pen over the box. Default false. |
| fps | number | — | The most frames a second. Default: the display rate. |
| resolution | number | — | A last scale on the canvas pixels, after the caps (0.5 draws a quarter of them). Default 1. |
| mask | "bottom""edges""none""radial""top" | — | Fades an edge into the page: radial, edges, top, or bottom. Default none. |
| vignette | number | — | Darkens toward the corners, 0 to 1. Default 0. |
| fallback | boolean | — | True: a CSS gradient of the palette shows on the server, until the first WebGL frame, and with no WebGL. Default false: the box stays empty and the live picture fades in, because the gradient looks unlike the real effect and the swap reads as a glitch. |
| lane | number | 15.6 | The width of one lane, in px. From 8 to 48. Default 15.6. |
| fall | number | 0.3 | How fast the lanes fall, in box heights a second. From 0.05 to 1.5. Default 0.3. |
| trail | number | 0.38 | How long the tail is, in box heights. From 0.1 to 0.9. Default 0.38. |
| density | number | 0.58 | How many lanes carry rain. From 0.1 to 1. Default 0.58. |
| mist | number | 0.07 | How much light stays between the drops. From 0 to 0.4. Default 0.07. |
| cell | number | 13 | The height of one glyph cell, in px. From 8 to 28. Default 13. |
| glyph | number | 0 | The glyphs: 0 letters, 1 binary, 2 blocks, 3 rings, 4 strokes, 5 waves, 6 katakana, 7 stars, 8 math, 9 arrows. A whole number from 0 to 9. Default 0. |
| glyph | number | 1 | How large a glyph is inside its cell. From 0.5 to 1.6. Default 1. |
| cell | number | 0.6 | The width of a cell against its height. From 0.45 to 1.2. Default 0.6. |
| stagger | number | 0 | How far every second row shifts sideways, in cells. From 0 to 1. Default 0. |
| twinkle | number | 0 | How much the glyphs shimmer over time. From 0 to 1. Default 0. |
| pointer | number | 0.35 | How much the pointer brightens the light under it. From 0 to 1. Default 0.35. |
| glow | number | 0.38 | How strong the smooth light under the type is. From 0 to 1.2. Default 0.38. |
| ink | number | 0.3 | How far up the palette the type sits above the light. From 0 to 0.5. Default 0.3. |
| ink | number | 0.05 | The tone under which a cell sets no glyph. From 0 to 0.4. Default 0.05. |
| gaps | number | 0 | How many cells drop out in loose patches. From 0 to 0.7. Default 0. |
| gap | number | 0.18 | How fast the patches of dropped cells drift. From 0 to 1. Default 0.18. |
| scatter | number | 0.02 | How much each cell shifts its tone, so glyph bands break up. From 0 to 0.25. Default 0.02. |
| bloom | number | 0.6 | How strong the soft halo around each glyph is. From 0 to 1. Default 0.6. |
| grain | number | 0.045 | How strong the film grain is. From 0 to 0.2. Default 0.045. |
| tone | number | 0 | The field light that reads as no tone. From 0 to 1. Default 0. |
| tone | number | 1 | The field light that reads as full tone. From 0 to 1. Default 1. |
| mask | number | 0.25 | The share of the box the mask fade takes, from 0.05 to 0.6. Default 0.25. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |





