Noiser
Fine procedural grain for hero backgrounds, rendered with responsive SVG turbulence filters.
Installation#
pnpm dlx shadcn@latest add @davinciui/noiserUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
noiseTypeGaussian maps to fractalNoise; Uniform maps to turbulence. | enum | "gaussian" |
frequencyTurbulence baseFrequency; higher values create finer grain. | number | 0.26 |
octavesNumber of noise detail layers. | number | 2 |
seedStarting noise seed. | number | 8 |
colorModeMono, Duo, or Multi noise coloring. | enum | "mono" |
monoColor / colorA / colorB / colorCColor values shown for the selected color mode. | string | — |
noiseOpacityOverall strength of the noise mask. | number | 0.3 |
colorOpacityColor-layer strength in Duo and Multi modes. | number | 0.8 |
animatedEvolve the seed at the selected frame rate. | boolean | true |
fpsAnimation update rate from 1 to 60 FPS. | number | 12 |
Accessibility#
Noiser is a decorative overlay marked aria-hidden with pointer-events none, and its SVG is focusable false, so it adds no content or focus targets. Foreground content remains fully accessible.
Motion#
The turbulence seed advances at the fps rate while animated is true, pausing offscreen and when the page is hidden. If prefers-reduced-motion matches at mount, the effect returns early and grain stays static; later preference changes are not observed.
Known constraints#
- The animation stops when the element leaves the viewport, so offscreen instances are not paused manually.
- Reduced motion prevents the animation from starting.
- The pattern is decorative and should stay behind the readable content layer.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

