🌍 Public
Viewing a saved revision (read-only)
1fa469d5092a4f09b05b29568d42f888
Mouse Follower
A circle follows the mouse cursor across an SVG canvas, updating its position in real time to mirror the pointer's movement. The React component tracks mouse coordinates through the `onMouseMove` event handler, storing them in state with the `useState` hook and updating via `useCallback`. The circle is rendered as an SVG `<circle>` element, with its `cx` and `cy` attributes driven by the current mouse position.
AI-generated descriptionA program that follows your mouse with a circle.