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.
Inside, the layers are pulled apart: the screen, a sheet of thin dark lines laid over it and a soft band of light that sweeps down again and again.
Plain screen is the same terminal with nothing over it. Scanlines lays thin dark lines across it and sweeps a soft band of light down, like an old tube screen.
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.
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.
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.