Skip to main content
100%

Mouse follower

✓ Published1🌍 Public
FFloorNummer
Last edited Sep 28, 2021
Created on Sep 28, 2021

A yellow circle follows the mouse cursor within an SVG canvas, updating its position in real time. The visualization uses React’s `useState` and `useCallback` hooks to track mouse coordinates via the `onMouseMove` event, and renders the circle with SVG elements. The code imports React and ReactDOM, and sets initial mouse position at the canvas center.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes