Components / effect

Dot Cursor

v1.0.0 · premium

Replaces the pointer in an area with a small dot that trails with a soft lag and swells into a disc over links.

Dot Cursor demo

Implementation

Replaces the pointer in an area with a small dot that trails with a soft lag and swells into a disc over links.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function CursorDot({ children, size = 14, grow = 3.2, follow = 90, ink, className }: {
  children: ReactNode;
  /** Dot diameter in pixels. */

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · Replaces the pointer in an area with a small dot that trails with a soft lag and swells into a disc over links.

Frequently asked questions

Does the dot replace the pointer on touch screens?

No. Only a mouse with hover support sees the dot. Touch, pen and coarse pointers keep the normal cursor, and the pointer is hidden only after the script has started.

Why does the dot fade over links?

Over links, buttons and anything marked data-cursor, the dot swells into a faint disc. A solid dot would cover the text underneath, so it becomes translucent instead.