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

Or, 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

Component props
PropTypeDefaultNotes
palette'aurora' | 'ember' | 'lagoon' | 'orchid''aurora'Colour family of the blobs (light and dark variants built in).
grainnumber0.5Film-grain strength, 0–1.
speednumber1Drift speed multiplier; 0 freezes the field.
pointerGlowbooleantrueSoft light that follows the pointer.
childrenReactNode—Content rendered above the field.
classNamestring—Extra classes merged onto the root (size, radius).

Dependencies

  • motion
  • 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.

See all 15 Animated Backgrounds components