Refined code rain with up to three depth layers, glowing heads, mutating trails and a custom glyph set, drawn from pre-rendered glyph atlases for speed. Streams near the pointer speed up and light up under a soft spotlight.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { CanvasMatrixRainPro } from "@/components/hyperblur-pro/canvas-matrix-rain-pro"
<CanvasMatrixRainPro />| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#0e6b3a", "#22e07a", "#e6fff0"] | Far layer color, main trail color and glowing head color. |
| background | string | "#020604" | Background color behind the rain. |
| glyphs | string | half-width katakana, digits and symbols | Characters used for the rain. Duplicates and spaces are ignored, up to 160 unique glyphs. |
| fontFamily | string | "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" | Font stack used to render the glyphs. |
| fontSize | number | 20 | Glyph size in pixels for the nearest layer. Farther layers are scaled down. |
| layers | 1 | 2 | 3 | 3 | Number of depth layers. Low-end devices use at most 2. |
| speed | number | 1 | Fall speed multiplier. |
| density | number | 1 | How many columns are active and how short the gaps between streams are, from 0.1 to 2. |
| mirror | boolean | true | Mirrors glyphs horizontally for the classic look. |
| fadeEdges | boolean | true | Fades the rain in at the top and out at the bottom. |
| pointer | boolean | true | Speeds up nearby streams and brightens glyphs under a spotlight around the pointer. |
| seed | number | 5 | Seed for the initial streams. |
| children | ReactNode | - | Content rendered on top of the background. |
| className | string | "" | Extra classes for the root. The root has a 240px minimum height; set a height to size it. |
| style | CSSProperties | - | Inline styles for the root. |
Source code is included in Standard and above