Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Aazharahmad0
Last edited Mar 21, 2021
Created on Mar 21, 2021

A single black circle follows the mouse cursor across an empty SVG canvas. The circle's position is updated in real time as the cursor moves, using React's `useState` and `useCallback` hooks to track `clientX` and `clientY` coordinates. The example renders with `ReactDOM.render` and imports `arc` from D3 v5, though the visible output is purely a responsive circle.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes