Mouse Follower
✓ Published1🌍 Public
A single SVG circle follows the mouse cursor across a 960 by 500 viewport, updating its position in real time. The React component uses the `useState` hook to store the cursor’s `clientX` and `clientY` coordinates and the `useCallback` hook to handle the `onMouseMove` event on the SVG element. Each mouse movement re-renders the circle’s `cx` and `cy` attributes, creating a direct, immediate visual response without animation or interpolation. The rendering relies solely on React’s declarative SVG output.
AI-generated descriptionA program that follow your mouse with circle
MIT Licensed