Fork of Mouse Follower
✓ Published0🌍 Public
A circle follows the mouse cursor across an SVG canvas, recentering itself as the pointer moves. The example uses React hooks `useState` and `useCallback` to manage the mouse position and update the circle’s `cx` and `cy` attributes via the SVG `onMouseMove` event. Rendering is handled by React DOM, with the visualization limited to a static circle whose radius remains constant.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed