Iridescent — React Animated Background
Thin-film interference colors drifting as silk — cosine-palette holography in a single pass.

Starting live preview
Usage
import { Iridescent, IRIDESCENT_PRESETS } from "@/components/Iridescent";
export function IridescentHero() {
return (
<section style={{ position: "relative", minHeight: "100dvh" }}>
<Iridescent {...IRIDESCENT_PRESETS.pearl}
{...{
interactive: true,
speed: 0.8,
scale: 2.4,
hueShift: 0,
saturation: 1,
brightness: 0.9
}}
/>
<div style={{ position: "relative", zIndex: 1, padding: "8rem 2rem" }}>
<h1>Holographic, minus the video</h1>
</div>
</section>
);
}Implementation notes & API
Purpose: holographic/silk background for brand moments; reads best with dark overlays and white type. Mount: full-bleed layer behind content. Props: speed, scale, hueShift (palette rotation), saturation, brightness. Pointer: cursor x rotates the hue and y tilts the silk sheen; interactive={false} pins both. Guardrails: saturation below 0.5 turns it gray — keep above 0.7 unless desaturation is intentional; WebGPU required with fallback prop.
| Property | Type | Notes / default |
|---|---|---|
interactive | boolean | false in the library; enabled in this preview |
fallback | ReactNode | Shown when the renderer is unavailable |
className / style | string / CSSProperties | Applied to the outer container |
View source on GitHubFree for commercial projects · MIT