Effects · Gutenberg

Matrix Rain block for WordPress

Canvas-rendered Matrix-style digital rain with falling character columns. Fully customizable character set, colors, speed and overlay content.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Canvas-rendered Matrix-style digital rain with falling character columns. Fully customizable character set, colors, speed and overlay content.

Inspector panels on this block: Canvas, Characters, Custom Colors, Text Overlay, Overlay Colors, Interaction. Those titles come from index.js, not from a shared template.

Behavior controls: “Character set” options: Matrix (Katakana + digits), Binary (0 and 1), Hexadecimal, Latin alphabet, Custom; “Custom characters” (Type the characters to use (no spaces needed)); “Color preset” options: 🟢 Classic Green / White head, 🔵 Cyan / White head, 🔴 Red / Pink head, 🟡 Gold / White head, 🟣 Purple / White head.

Where to find it

Gutenberg inserter → Effects → search “Matrix Rain” (block name `blockenberg/matrix-rain` in block.json). Style it in the sidebar after insert.

How to use Matrix Rain block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Matrix Rain”, insert it. Category: Effects.
  3. Configure inspector controls that exist on this block. Open Canvas. Set “Height (px)”, “Speed”, “Density (%)”, “Fade trail length”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Height (px)Numeric range control in the inspector. Range 100–900. block.json default: 400. Saved as `height`.
SpeedNumeric range control in the inspector. Range 1–100. block.json default: 50. Saved as `speed`.
Density (%)Numeric range control in the inspector. Range 10–100. block.json default: 100. Saved as `density`.
Fade trail lengthNumeric range control in the inspector. Range 1–80. block.json default: 20. Saved as `fadeLength`.
Glow effectOn/off toggle in the inspector. On by default. Saved as `glowEffect`.
Random start positionsOn/off toggle in the inspector. On by default. Saved as `randomStart`.
Character setSelect control; the chosen value is saved on the block. Options: Matrix (Katakana + digits); Binary (0 and 1); Hexadecimal; Latin alphabet; Custom. block.json default: matrix. Saved as `charSet`.
Custom charactersText field in the inspector. Type the characters to use (no spaces needed). block.json default: 01. Saved as `customChars`.
Canvas font size (px)Numeric range control in the inspector. Range 8–40. block.json default: 16. Saved as `fontSize`.
Color presetSelect control; the chosen value is saved on the block. Options: 🟢 Classic Green / White head; 🔵 Cyan / White head; 🔴 Red / Pink head; 🟡 Gold / White head; 🟣 Purple / White head; 🌈 Rainbow columns; 🎨 Custom colors. block.json default: classic-green. Saved as `colorStyle`.
Background opacity (fade trail)Numeric range control in the inspector. Range 1–40. block.json default: 8. Saved as `bgOpacity`.
Rain colorColor control in the inspector. block.json default: #00ff41. Saved as `primaryColor`.
Head (leading char) colorColor control in the inspector. block.json default: #ffffff. Saved as `headColor`.
Background colorColor control in the inspector. block.json default: #000000. Saved as `bgColor`.
Show text overlayOn/off toggle in the inspector. On by default. Saved as `showOverlay`.
Main textText field in the inspector. block.json default: THE MATRIX. Saved as `overlayText`.
SubtextText field in the inspector. block.json default: Follow the white rabbit.. Saved as `overlaySubtext`.
Overlay text colorColor control in the inspector. block.json default: #00ff41. Saved as `overlayTextColor`.
Overlay backgroundColor control in the inspector. block.json default: rgba(0,0,0,0.35). Saved as `overlayBg`.
Click to pause/resumeOn/off toggle in the inspector. On by default. Saved as `clickToPause`.
Pause on hoverOn/off toggle in the inspector. Off by default. Saved as `pauseOnHover`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Matrix Rain block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Matrix Rain”. It sits under Effects. After insert, open Canvas and set “Height (px)”, “Speed”, “Density (%)”, “Fade trail length”.

What makes Matrix Rain different from other Blockenberg blocks?

Canvas-rendered Matrix-style digital rain with falling character columns. Fully customizable character set, colors, speed and overlay content. Inspector labels on this block include “Height (px)”, “Speed”, “Density (%)”, “Fade trail length”.

Is the Matrix Rain Gutenberg block free?

Yes. Matrix Rain ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Matrix Rain to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Canvas, Characters, Custom Colors, Text Overlay).

Related effects blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Matrix Rain from the Gutenberg inserter.

Get Blockenberg