Search

Search the site

All components

Shader Aurora

WebGL aurora: 2D simplex FBM + layered curl-noise flow fields for ribbon-like liquid motion (replacing value-noise blobs), container-scoped pointer tracking (enter to engage, leave fades distortion), pointer velocity in UV/s (time between pointer events), frame-time exponential decay, clamped magnitude, noisy falloff + swirl + ring + trail, spatial hue variation on blends, and subtle film grain. Respects `prefers-reduced-motion` (static frame, no cursor distortion, no RAF loop). Renders as a `relative` wrapper: canvas fills behind optional `children` (pointer-events-none; moves bubble from children).

Default
Default shader aurora background

Sign in to view this example's source code.

Sign in
Neon SaaS
Neon SaaS shader aurora background

Sign in to view this example's source code.

Sign in
Warm gradient
Warm gradient shader aurora background

Sign in to view this example's source code.

Sign in

Props

NameTypeDefaultDescription
childrenReactNode-Foreground above the WebGL layer (clicks/hover work normally).
colors[string, string, string]['#7c3aed', '#06b6d4', '#3b82f6']Three hex colors (#rrggbb) blended in the fragment shader
speednumber0.2Multiplier on elapsed time passed to the shader
intensitynumber1.0Scalar applied to the final color in the shader
cursorDistortionnumber0.12Radial + swirl UV warp at the pointer (0 disables). Only active while the pointer is inside the component; fades on leave. Pointer deltas feed u_velocity (with per-frame decay) so fast moves read stronger.
cursorRadiusnumber0.32Gaussian falloff radius in aspect-corrected UV space
maxVelocitynumber2.5Clamp for pointer velocity (UV/s) after time-normalized deltas; reduces flick spikes