Skip to content

NewMCP server for your coding agent. Set it up ›

Nexus UI
Get Pro

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

PropTypeDefaultWhat it does
colors["#5e5ce6", "#ff375f", "#0a84ff", "#ff9f0a"]Up to four colours for the glowing pools under the grain.
grain0.35Strength of the film grain, 0 to 1.
distortion90How far the surface melts while held, in px of displacement.
speed1Speed multiplier for the flowing turbulence.
children—Content over the surface. Defaults to a title.
hint"Press and hold to melt it."Caption under the default title. Pass an empty string to hide it.
autoplayfalseHolds and releases the surface every few seconds until someone touches it.
className—Extra classes (the surface is 340px tall and up to 520px wide by default).

Add it to your project

  1. 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 creates components.json and the cn() helper in src/lib/utils.ts:

    npx shadcn@latest init -d

    Starting from nothing? The Quick Start walks through the whole thing.

  2. 2

    Connect the registry

    Run this once per project. It writes the Nexus UI entry into components.json for 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.

  1. 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
  2. 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.ts
    svg-noise-shader.tsx
  3. 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:

  4. 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

Guides