Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
EEverton Rocha
Last edited Mar 10, 2021
Created on Mar 10, 2021
Forked from Mouse Follower

A circle follows the mouse cursor across a 960 by 500 SVG canvas, updating its position in real time. Built with React, the app tracks `onMouseMove` events to store the cursor’s coordinates in state and re-renders a single `<circle>` element with the new `cx` and `cy` values. The example uses React’s `useState` and `useCallback` hooks alongside ReactDOM, with visual output rendered entirely as SVG.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes