Grain Gradient Field
A full-bleed background of four slowly drifting colour blobs under real SVG film grain, with a pointer-following glow. Four palettes, light and dark tuned, still when reduced motion is on.
Try it: Move the pointer across the field — the light follows; pick a palette.
Brings its own background. Paints its own base colour, drifting blobs and grain, adapting to the nearest .dark/.light scope. Use as a section background and keep copy on a scrim.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/grain-gradient-field.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/grain-gradient-field. You can also copy the source into components/ui/grain-gradient-field.tsx (view on GitHub).
Usage
import { GrainGradientField } from '@/components/ui/grain-gradient-field'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
palette | 'aurora' | 'ember' | 'lagoon' | 'orchid' | 'aurora' | Colour family of the blobs (light and dark variants built in). |
grain | number | 0.5 | Film-grain strength, 0–1. |
speed | number | 1 | Drift speed multiplier; 0 freezes the field. |
pointerGlow | boolean | true | Soft light that follows the pointer. |
children | ReactNode | — | Content rendered above the field. |
className | string | — | Extra classes merged onto the root (size, radius). |
Dependencies
motion
Related Animated Backgrounds components
- Horizon Grid Field
A quiet perspective floor gliding toward you under a softly lit horizon. Hairline grid lines fade into haze, a low glow sits on the vanishing line and, in dark scopes, still stars hang above. Pure…
- Pulse Rings
Concentric soft rings expand from pointer/click.
- Flicker Dot Field
A calm LED-like matrix: each mark drifts between brightness levels on its own clock so the field shimmers without syncing, and marks near the pointer glow. Set flicker to 0 for a still dot pattern.…
- Chromatic Mist
Dual-tone mist with chromatic split on motion.
- Iron Filings Field
Thousands of steel needles on paper swing with a little inertia to align with the magnetic field of a few poles; the pointer carries a north pole and clicks drop new poles.
- Ember Drift
Warm particles rising with soft bloom.