07.03 · Ambient & Background

Aurora / Northern Lights

Blurred bands of light sway like the northern lights. Best for dark backgrounds.

Watch it

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

Aurora
Charged particles. Magnetic fields. Light.
Green is oxygen high in the sky; red is rarer, and higher still.

Try it

Change a setting and see the difference as it moves.

Number of bands

More bands make a fuller sky.

Speed

Longer cycles feel calmer.

Colors

Green is the most common aurora; red is rare.

More optionsFewer options

Brightness

How strongly the bands glow.

Adds twinkling stars behind the bands.

Copy the prompt

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

Add an aurora background to [the dark section you want it behind]. Stack a few tall, wide bands of color that fade to transparent at the top and bottom, blur them softly, and let each one sway sideways and lean a little on its own slow cycle, so they drift apart and together like curtains of light. Make the bands wider than the section and clip them, so their ends never show. Blur less on phones to keep it smooth. If the visitor has reduced motion turned on, keep the bands 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

  • Hero sections
  • Night and space themes
  • Music and meditation apps
  • Travel sites

Avoid on

  • Light pages
  • Busy layouts