Skip to main content
100%

Mouse follower

✓ Published1🌍 Public
Mmattbwebster
Last edited Aug 28, 2021
Created on Aug 28, 2021

A circle follows the mouse cursor across a full-window SVG canvas, reacting in real time to pointer movement. The React component tracks mouse coordinates via the `onMouseMove` event, updating state with `useState` and `useCallback`, then re-renders the circle’s `cx` and `cy` attributes. The visualization uses React 16.9 and ReactDOM to render SVG elements directly in the browser.

AI-generated description

A program that follows your mouse with a circle

MIT Licensed

Similar vizzes