🌍 Public
Mouse Follower
A circle follows the mouse cursor across an SVG canvas, updating its position in real time. The React component uses the `useState` and `useCallback` hooks to track mouse coordinates from `onMouseMove` events, then passes those coordinates to the circle's `cx` and `cy` attributes. The visualization is rendered with ReactDOM into a 960×500 SVG viewport.
AI-generated descriptionA program that follows your mouse with a circle
MIT Licensed
Comments
Sign in to join the discussion.