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)
Props & Attributes
| HTML Attribute | JS / React Prop | Type | Default | Description |
|---|---|---|---|---|
data-fx-speed | speed | number | 1.0 | Time multiplier for curtain motion. |
data-fx-quality | quality | 'low' | 'medium' | 'high' | 'medium' | Controls DPR caps and FBM octave count (3 / 4 / 5). |
data-fx-colors | colors | string | string[] | ['#4f46e5','#06b6d4','#ec4899'] | 3-color aurora curtain palette. |
data-fx-bg-color | bgColor | string | Auto theme | Custom backdrop color or 'transparent'. |
data-fx-interactive | interactive | boolean | true | Enables pointer warp & glow reaction. |