Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Ddavebell
Last edited Jul 14, 2021
Created on Jul 14, 2021
Forked from Smiley Face Part 1

A yellow circle follows the mouse across a blank SVG canvas, responding instantly to pointer movement within the viewport. The visualization uses React state and the `useCallback` hook to track client coordinates, updating the circle's `cx` and `cy` attributes through React's declarative rendering. The page loads React 17 and D3 v7 from a CDN, though the interaction relies solely on event handling rather than D3-specific APIs. The minimalist setup with a full-screen, overflow-hidden body ensures uninterrupted tracking.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes