07.16 · Ambient & Background

Matrix Rain

Columns of glowing characters rain down a dark screen. Best for tech themes.

Watch it

It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.

Try it

Change a setting and see the difference as it moves.

Speed

Slow is a drizzle; fast is a downpour.

Characters

Japanese characters give the film's look.

Trail length

How long characters linger behind each leader.

More optionsFewer options

Character size

Larger characters make fewer, wider columns.

The leading character in each column glows.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a matrix rain background to [the section you want it behind]. Split a dark canvas into columns and, at a steady pace, draw a bright character at the head of each column and move it down one row, sending each column back to the top at random once it passes the bottom. Instead of clearing the canvas, cover it with a see-through black layer before each step, so older characters fade into a trail behind each bright leader. Space the columns wider on phones. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Tech and hacker themes
  • Loading screens
  • Game and event pages
  • 404 pages

Avoid on

  • Calm brands
  • Long reading pages