Mouse Follower
✓ Published1🌍 Public
A circle follows the mouse pointer across a full-screen SVG canvas, updating its position in real time as the cursor moves. Built with React hooks, the component tracks mouse coordinates via the `onMouseMove` event and stores them in state, then re-renders the circle with the new `cx` and `cy` attributes. The SVG spans the entire window, and the circle has a fixed radius of 30 pixels, starting at the screen’s center. Rendering uses React DOM and plain SVG, with no external data or animation library.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed