Fork of Mouse Follower
✓ Published0🌍 Public
This interactive React visualization displays a static SVG circle centered on a 960 by 500 canvas. A mouse follower is implemented by listening to `onMouseMove` events on the circle and updating a state variable with the cursor’s `clientX` and `clientY` coordinates. It uses `useState` and `useCallback` hooks to manage the position, with `ReactDOM` rendering the SVG element and logging coordinates to the console. The circle itself remains fixed at radius 150, while the mouse position is tracked but not visually represented.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed