07.05 · Ambient & Background

Scanline Effect

Dark lines and a sweeping beam imitate an old TV screen. Best for retro sites.

Watch it

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

SYSTEM READY
Tuning the signal…
All channels clear
Picture steady

Try it

Change a setting and see the difference as it moves.

Line spacing

Tight lines look most like a real old screen.

Line darkness

Darker lines look more retro but are harder to read.

A band of light sweeps down the screen.

More optionsFewer options

Beam speed

How long the beam takes to cross the screen.

Beam brightness

Keep the beam faint: it should be felt, not seen.

Darkens the corners like an old screen's curved glass.

A soft glow around the letters.

Copy the prompt

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

Add a scanline effect to [the screen, panel or section you want to look like an old monitor]. Lay thin, dark horizontal lines over the content with a repeating stripe pattern, in a layer that clicks pass through, so it looks like the rows of an old tube screen. When the settings include them, sweep a soft band of light slowly down the screen again and again, darken the corners like curved glass, and give the text a soft glow. Make sure the text stays readable through the lines. If the visitor has reduced motion turned on, keep the beam still. 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

  • Retro and gaming sites
  • Terminal screens
  • Music players
  • Sci-fi interfaces

Avoid on

  • Long reading
  • Forms