syaivoalpha

Aurora

Curtains of color drift and shimmer like the northern sky. Atmospheric, immersive, effortlessly elegant.

Preview

Usage

import { createAurora } from 'syaivo';

const effect = createAurora({
  backgroundColor: '#0a0a0a',
  curtains: 5,
  waveAmplitude: 0.12,
  speed: 1,
  opacity: 0.5,
});

effect.mount(document.getElementById('hero')!);

Options

OptionTypeDefaultDescription
colorsstring[]Aurora tonesCurtain colors (green, teal, blue, purple)
backgroundColorstring"#0a0a0a"Canvas background
curtainsnumber5Number of light curtains
waveAmplitudenumber0.12Horizontal wave amplitude (fraction of width)
curtainWidthnumber0.35Curtain width (fraction of width)
speednumber1Animation speed multiplier
opacitynumber0.5Global opacity for aurora layer
scanlinesbooleanfalseAdd horizontal scanlines for CRT/retro look
animatedbooleantrueEnable animation
respectReducedMotionbooleantrueHonor prefers-reduced-motion

Dynamic Updates

effect.update({ curtains: 7, opacity: 0.7 });

Example

Introducing your product

Build something
people remember

A polished experience starts with the details. Ship interfaces that feel considered from the first pixel.

Get startedDocumentation

On this page