Backgrounds

Aurora

Flowing curtains of amethyst light drifting across a starless night sky — an fbm-warped WebGL2 field where luminous bands ripple, fold, and dissolve into fine grain, like a polar aurora seen from the dark side of the world.

Install

bun add ogl

Then copy 2 files into your project:

  • components/registry/aurora/aurora.tsx
  • hooks/use-animation-loop.ts

Props

PropTypeDefaultDescription
baseColorstring (hex)"#05010a"Deep background the curtains glow against.
auroraColorstring (hex)"#a855f7"Primary amethyst light of the bands.
auroraColor2string (hex)"#22d3ee"Secondary tint the curtain edges shift toward.
speednumber0.6Drift speed of the flowing bands.
intensitynumber1Overall brightness of the aurora.
bandsnumber3Number of layered light curtains.
warpnumber1Turbulence of the fbm domain-warp folding the curtains.
coveragenumber0.6Vertical reach of the curtains up the sky.
grainnumber0.08Subtle film grain over the field.

What It Demonstrates

Loop
An animation that repeats, a set number of times or infinitely.
Idle animation
Subtle motion that plays while an element is just sitting there, waiting to be interacted with.
Float
A gentle, continuous up-and-down drift that makes a static element feel alive and weightless.

Related Components

Appears In