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. Canvas 2D.
Try it: Move the pointer through the field — nearby marks light up.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/flicker-dot-field.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/flicker-dot-field. You can also copy the source into components/ui/flicker-dot-field.tsx (view on GitHub).
Usage
import { FlickerDotField } from '@/components/ui/flicker-dot-field'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
shape | 'square' | 'dot' | 'square' | LED squares or round dots. |
size / spacing | number | 3 / 12 | Mark size (1–8) and centre spacing (6–48) in px. |
flicker | number | 0.5 | Liveliness 0–1; 0 is a still pattern. |
maxOpacity | number | 0.6 | Brightest a mark gets. |
color | string | — | Mark colour; defaults to lilac tuned per theme. |
pointerGlow / vignette | boolean | true / true | Pointer brightening; radial edge fade. |
showControls | boolean | true | Show the Pause / Play control. |
theme | 'auto' | 'light' | 'dark' | 'auto' | Canvas palette; auto follows the nearest .dark/.light. |
children | ReactNode | — | Content centred above the field. |
className | string | — | Extra classes merged onto the root. |
Dependencies
lucide-react
Related Animated Backgrounds components
- 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.
- 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…
- Glow Arc Hero
A rainbow of glossy tiles fans in around a centred headline; each tile breathes its own coloured halo while the arc sways and tilts toward the pointer.
- 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.
- Prism Tidal Field
Soft lilac tidal bands that bend toward pointer velocity.
- Pulse Rings
Concentric soft rings expand from pointer/click.