Aurora Veil
Web (React)
Layered aurora curtains drifting over a night sky with soft noise, film grain and a vignette.
Aurora curtains screened over a deep night background, textured with soft-light simplex noise and film grain and framed by a vignette. It fills its positioned parent and freezes its animation when the user prefers reduced motion. Built on the shaders library (MIT) and rendered with WebGPU.
Aurora Veil
Installation
CLI
npx @modus-ui/cli add aurora-veilManual
- Install
shaderswithnpm install shaders. - Copy the code from the component tab.
- Create a file at
components/ui/aurora-veil.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
colorA | string | "#22d3ee" | First curtain colour. |
colorB | string | "#a855f7" | Second curtain colour. |
colorC | string | "#34d399" | Third curtain colour. |
backgroundColor | string | "#030712" | Sky colour behind the curtains and vignette tint. |
speed | number | 5 | Animation speed (0 to 100 scale). |
intensity | number | 80 | Brightness of the curtains (0 to 100). |
curtainCount | number | 4 | Number of aurora curtains. |
waviness | number | 50 | How much the curtains undulate (0 to 100). |
grain | number | 0.08 | Film grain strength. |
Comments