GitHub
Translate

Opens Google Translate in a new tab. Website translation availability varies by region. Details

WebGL2 Shader • GLSL

Aurora

Renders luminous, domain-warped FBM aurora curtains across any section. Move your cursor to bend and brighten nearby ribbons smoothly, combining backdrops and ribbon hues via Additive Color Blending (ACD).

Live Playground

Live WebGL2 Move Cursor to Warp
Speed 1.00
Quality
Palette

Where to Use It

SaaS & AI Hero Sections

Creates atmospheric, glowing motion behind headlines and CTAs without distracting from product screenshots.

Dual Light & Dark Sites

Automatically shifts from soft pastel silk in light mode to luminous polar curtains in dark mode via theme="auto".

Pricing & Launch Banners

Use scroll-coupled color transitions (scrollColors) across long landing pages using only one context.

Usage (Copy & Paste)

<section
  data-fx="aurora"
  data-fx-speed="1.0"
  data-fx-quality="medium"
  data-fx-colors="#4f46e5, #06b6d4, #ec4899"
  style="min-height: 60vh;"
>
  <div style="position: relative; z-index: 1;">Your Hero Content</div>
</section>

<script src="https://unpkg.com/@votax572002/fluxfx/dist/fluxfx.min.js"></script>
'use client';
import { Aurora } from '@votax572002/fluxfx/react';

export function Hero() {
  return (
    <Aurora
      speed={1.0}
      quality="medium"
      colors={['#4f46e5', '#06b6d4', '#ec4899']}
      style={{ minHeight: '60vh', padding: '3rem' }}
    >
      <h1>Aurora Hero</h1>
    </Aurora>
  );
}
import { FluxFX } from '@votax572002/fluxfx';

const el = document.getElementById('hero')!;
const cleanup = FluxFX.apply(el, 'aurora', {
  speed: 1.0,
  quality: 'medium',
  colors: ['#4f46e5', '#06b6d4', '#ec4899'],
  interactive: true,
});

How It Works (Flowchart)

UV + Pointer Warp exp(-dist) cursor push Domain-Warped FBM 3–5 smooth octaves Curtain Ridges pow(1 - |sin|, 2.1) + glow Theme Output uTheme / transparent

Props & Attributes

HTML AttributeJS / React PropTypeDefaultDescription
data-fx-speedspeednumber1.0Time multiplier for curtain motion.
data-fx-qualityquality'low' | 'medium' | 'high''medium'Controls DPR caps and FBM octave count (3 / 4 / 5).
data-fx-colorscolorsstring | string[]['#4f46e5','#06b6d4','#ec4899']3-color aurora curtain palette.
data-fx-bg-colorbgColorstringAuto themeCustom backdrop color or 'transparent'.
data-fx-interactiveinteractivebooleantrueEnables pointer warp & glow reaction.