Backgrounds

Horizon Aurora

Smoky first light rising off a curved horizon. A domain-warped fbm field is sheared along a slow lean, so the noise stretches into strands of smoke, and a thin bright rim pools right on the horizon line the way light gathers at the edge of a planet. Move the pointer over it and the plume leans toward it and climbs to meet it, then drifts home when you leave. The horizon lies along the bottom edge or the top, and sits wherever you put it: right on the edge as a footer or header glow, or moved in with dark ground behind it.

Install

# HorizonAurora needs no npm packages

Then copy 2 files into your project:

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

Props

PropTypeDefaultDescription
position"bottom" | "top""bottom"Which edge the horizon lies along. Bottom rises off a footer; top flips the whole field so the light hangs down from a header, and the pointer pull follows it.
horizonnumber0How far the horizon sits from its edge, as a fraction of the height. 0 lays it on the edge itself, so a border or hairline reads as the horizon; move it in and dark ground opens up behind it.
curvaturenumber0How far the horizon bows down toward the corners. The light follows it, so the glow tapers off at the sides.
reachnumber1How high the smoke climbs off the horizon.
speednumber1Drift rate of the smoke. Accumulated per frame, so retuning it never jumps the field.
intensitynumber1Density of the smoke, and with it the brightness.
pullnumber1How hard the plume leans toward the pointer and climbs to meet it. 0 leaves it drifting on its own.
coreColorstring (hex)"#e9d5ff"The dense heart of the smoke and the rim on the horizon.
hazeColorstring (hex)"#a855f7"The thin smoke at the edges, where the light fades into the sky.
skyColorstring (hex)"#07060b"The sky behind the light. The smoke blends mostly as light, so it wants a dark sky to read.

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.
Hover effect
Visual change when the cursor moves over an element.
Follow-through
Parts of an element keep moving and settle slightly after the main motion stops, adding weight.

Related Components

Appears In