Skip to main content
100%

Mouse follower

✓ Published0🌍 Public
MMaleehak
Last edited Jan 16, 2021
Created on Jan 16, 2021
Forked from Mouse Follower

A circle tracks the mouse in real time across the full browser window. Built with React and SVG, the component uses React's `useState` hook to store the pointer's coordinates, updating them on each `mousemove` event via the SVG `onMouseMove` handler. The circle's `cx` and `cy` attributes are bound to these state values, smoothly rendering its position on every move.

AI-generated description

Program that follows your mouse with a circle.

MIT Licensed

Similar vizzes