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.
Inside, each column has one bright leader that steps down a row at a time. The whole screen is dimmed a little each step, so older characters fade into a trail.
Cleared each step wipes its half to black, so each leader shows with just one dim character above it. Dimmed each step only darkens it a little, so each leader leaves a fading trail.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.