Fork of Mouse Follower
✓ Published0🌍 Public
A single circle follows the mouse cursor across an SVG canvas. The visualization uses React's `useState` and `useCallback` to track the cursor's `clientX` and `clientY` coordinates, updating the circle's `cx` and `cy` attributes in real time. The SVG element has a fixed width of 960 and height of 500, with the circle's radius set to 30. The code renders the SVG directly via ReactDOM and a `bundle.js` script, with the initial mouse position centered on the canvas.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed