A full-bleed fragment shader that folds up to six colors through domain-warped noise into a slow liquid gradient, swirling around the pointer, with film grain, vignette and an animated CSS gradient fallback when WebGL is unavailable.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { WebglFluidGradient } from "@/components/hyperblur-pro/webgl-fluid-gradient"
<WebglFluidGradient className="h-[560px]" colors={["#050510", "#1e1b4b", "#7c3aed", "#06b6d4"]}><h1>Ship faster</h1></WebglFluidGradient>| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#07060f", "#2a1b7a", "#6d4bff", "#22d3ee", "#f472b6"] | Two to six CSS colors, darkest first. The first one is also the base color behind everything. |
| speed | number | 1 | Flow speed multiplier. 0 freezes the motion while keeping pointer interaction. |
| density | number | 1 | Scale of the noise field. Higher values give more, smaller folds. |
| interactive | boolean | true | Swirl the gradient around the pointer. |
| pointerStrength | number | 1 | Strength of the pointer swirl. |
| grain | number | 0.05 | Film grain amount, 0 to about 0.15. |
| vignette | number | 0.45 | Edge darkening from 0 to 1. |
| maxDpr | number | 1.5 | Upper limit for the device pixel ratio used by the canvas. Lower it for cheaper rendering on large screens. |
| className | string | "" | Extra classes for the root. Give it a height or let children size it (min-height is 240px). |
| style | CSSProperties | Inline styles merged onto the root. | |
| children | ReactNode | Content rendered on top of the background. |
Source code is included in Standard and above