Cursor Follower
✓ Published1🌍 Public
A dark red circle tracks the mouse cursor across a full-screen SVG canvas, updating its position in real time. React hooks (`useState` and `useCallback`) manage the cursor coordinates and handle mouse-move events. The circle’s center is offset upward by its radius, and the viewport size is derived from `window.innerWidth` and `window.innerHeight`. The example renders a single SVG circle with JavaScript and React.
AI-generated descriptionA program that follows your mouse with a circle
MIT Licensed