Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
GGul Jamal Zim
Last edited Jan 1, 2021
Created on Jan 1, 2021

A single black circle follows the mouse as it moves across an SVG canvas. The React component tracks pointer coordinates through an `onMouseMove` event handler and updates the circle’s `cx` and `cy` attributes via React state. The example imports the `arc` function from d3 but does not use it, relying instead on plain SVG rendering and React’s `useState` and `useCallback` hooks for interactivity.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes