Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
DDavid Allyn
Last edited Nov 24, 2021
Created on Nov 23, 2021
Forked from Smiley Face Part 2

A circle follows the mouse as it moves across an SVG canvas, using React's `useState` and `useCallback` to track the pointer's `clientX` and `clientY` coordinates. The example renders a single black-stroked circle via ReactDOM into an HTML page with CSS resets, demonstrating a minimal interactive visualization with no external data source.

AI-generated description

A circle that follows your mouse

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

See also React Starter.

MIT Licensed

Similar vizzes