SVG Noise Shader, animated React component
A grainy gradient surface built from SVG feTurbulence: film grain that flickers over soft pools of colour leaning toward the pointer. Press and hold (or hold Space) and the surface melts through a displacement map; let go and it snaps back like jelly, overshooting before it settles.
- Free
- Shaders
- Hover
- Spring
- Glow
Like SVG Noise Shader? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. SVG Noise Shader stays free.
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
SVG noise
Grain.
Press and hold to melt it.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| colors | string[] | ["#5e5ce6", "#ff375f", "#0a84ff", "#ff9f0a"] | Up to four colours for the glowing pools under the grain. |
| grain | number | 0.35 | Strength of the film grain, 0 to 1. |
| distortion | number | 90 | How far the surface melts while held, in px of displacement. |
| speed | number | 1 | Speed multiplier for the flowing turbulence. |
| children | ReactNode | — | Content over the surface. Defaults to a title. |
| hint | string | "Press and hold to melt it." | Caption under the default title. Pass an empty string to hide it. |
| autoplay | boolean | false | Holds and releases the surface every few seconds until someone touches it. |
| className | string | — | Extra classes (the surface is 340px tall and up to 520px wide by default). |
Add it to your project
- 1
Set up your project once
You need a Next.js project with Tailwind CSS and the
@/import alias. In its root folder, run this once. It createscomponents.jsonand thecn()helper insrc/lib/utils.ts:npx shadcn@latest init -d
Starting from nothing? The Quick Start walks through the whole thing.
- 2
Connect the registry
Run this once per project. It writes the Nexus UI entry into
components.jsonfor you:npx shadcn@latest registry add "@nexus-labs=https://www.nexus-ui.com/api/registry/{name}"Type it exactly as shown.
{name}is filled in by the CLI with the component you ask for, so you never replace it.
- 3
Add the component
Run this from your project root. It adds the component, the helpers it imports and its npm packages.
npx shadcn@latest add @nexus-labs/svg-noise-shader
- 4
Check what was added
With a project made as in the Quick Start (a
src/folder), these files land in it:components/svg-noise-shader/index.tssvg-noise-shader.tsx - 5
Copying by hand? Skip the registry
Instead of steps 2 and 3 you can copy the files yourself, with no registry and no API key. Step 1 still applies, so that
cn()exists. Install the packages:npm install framer-motion
Then show the source and create each file at the path it gives:
- 6
Use it in a page
Installing only adds the files. Import the component in a page and render it. The Usage tab on the preview shows a fuller example with props:
// src/app/page.tsx import { SvgNoise } from "@/components/svg-noise-shader"; export default function Page() { return ( <main> <SvgNoise /> </main> ); }
Like SVG Noise Shader? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. SVG Noise Shader stays free.
About SVG Noise Shader
The SVG Noise Shader generates an animated feTurbulence-based noise field for textured, sci-fi background surfaces. The turbulence base frequency and octave parameters animate over time using SVG animate elements, producing an organic, shifting texture with no canvas API or WebGL dependency. It works as a hero backdrop, section overlay, or standalone visual texture element. Compatible with any modern browser that supports SVG filters.
Good for
- AI and tech product hero backgrounds
- Sci-fi and cyberpunk aesthetic sections
- Atmospheric section dividers
- Game and creative tool landing pages