Mouse Follower
✓ Published0🌍 Public
A yellow circle follows the mouse as it moves across a blank SVG canvas. The visualization tracks the cursor position in real time, rendering the circle at the exact coordinates of the pointer. Built with React and ReactDOM, it uses SVG’s `onMouseMove` event handler to capture the cursor’s client coordinates and update the circle’s `cx` and `cy` attributes. The circle maintains a constant radius of 30 pixels within a 960 by 500 viewport.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed