🌍 Public
Viewing a saved revision (read-only)
c2f6655996224263b25b7be9e7e6a0ab
Fork of Mouse Follower
A circle follows the mouse cursor across an SVG canvas. The visualization updates the circle’s position in response to every mouse movement event. Built with React 16.9, it uses the `useState` hook to track the cursor’s `clientX` and `clientY` coordinates and the `useCallback` hook to handle the `onMouseMove` listener. The circle’s center is set via `cx` and `cy` attributes on the SVG `<circle>` element, with a fixed radius of 30 pixels.
AI-generated descriptionA program that follows your mouse with a circle.