Noise Background
Drifting brand-gradient blobs under a static film-grain overlay; wraps its content.
- 1.8 KB gzipped
- Zero dependencies
- Reduced-motion safe
- Base UI & Radix compatible
Quiet software for loud ideas
A calm workspace for teams that ship.
Installation
pnpm dlx shadcn@latest add https://velora.colorlib.com/r/noise-background.jsonAdds components/velora/noise-background.tsx.
Examples
Newsletter card
An email signup card with heavier grain; the drift stops while the field has focus.
The Friday changelog
One short email a week: what shipped, what broke and what we learned.
No spam. Unsubscribe in one click.
Props
| Prop | Type | Default |
|---|---|---|
grainFilm-grain opacity, 0–1 (0 hides the grain) | number | 0.35 |
speedDrift speed multiplier | number | 1 |
pauseOnHoverPause the drift while hovered (focus inside always pauses it) | boolean | true |
Also accepts every <div> attribute, forwarded to the root element.
Accessibility
- Reduced motion
- The blobs never move; the gradient wash and grain render as a still backdrop.
- Keyboard
- The wrapper is not focusable. The drift stops while focus is inside it (and while hovered, unless pauseOnHover is false); it also stops offscreen and in hidden tabs.
- Screen readers
- The blob and grain layers are aria-hidden; only the children are announced.