Pulse dot
Notification dot with an organic breathing pulse ring that expands and fades on a sine wave. Colour follows cursor position unless a fixed colour is provided.
- requestAnimationFrame
- Sine Easing
- pastelColour
pulse-dot
cursor-reactive
fixed colours
Top row follows your cursor. Bottom row stays fixed.
Usage
Drop it in
import { PulseDot } from "@/app/lib/components/pulse-dot";<PulseDot />
<PulseDot size={12} colour="#7dd3fc" />API
Props
| Prop | Type | Default |
|---|---|---|
sizeDot diameter in pixels | number | 8 |
colourFixed colour — if omitted, uses cursor-reactive pastelColour | string | — |
classNameAdditional class names on the wrapper | string | "" |
Read from the component's source at build time. * required.
Accessibility
Works with
- Cursor
- Reacts to where the pointer is, not just whether it's over the element.
- Touch
- Follows your finger while it's down, then settles a moment after you lift.
- Keyboard
- Focus lights it up the way the cursor does. Every action has a key.
- Reduced motion
- Nothing moves or springs. Colour still answers, without drifting.