Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
AAruj Joshi
Last edited Feb 1, 2022
Created on Feb 1, 2022
Forked from Mouse Follower

An interactive React application renders a single SVG circle that follows the mouse cursor across a 960 by 500 viewport. The component tracks pointer position via an `onMouseMove` event handler and updates React state with the client coordinates. The circle’s center coordinates are bound to this state, causing a smooth repositioning on every movement. The code uses React 16.9 with hooks (`useState`, `useCallback`) and renders through `ReactDOM`.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes