Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
Aajardev
Last edited Aug 6, 2022
Created on Jul 13, 2022

A React component tracks the mouse position across the full browser window and renders a single SVG circle that follows the cursor in real time. The circle’s center coordinates update through the `useState` hook and the `onMouseMove` handler on the SVG element, which captures `clientX` and `clientY` from the event. Rendered using ReactDOM, the visualization demonstrates basic state-driven SVG interaction without any external data or animation library.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes