Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
HHollyClarke19
Last edited Jan 24, 2021
Created on Jan 24, 2021

A circle follows the mouse cursor across an SVG canvas, updating its position in real time as the pointer moves. The visualization is built with React, using the `useState` and `useCallback` hooks to track and update the mouse coordinates. The app renders a single cyan circle within an SVG element, and the circle’s `cx` and `cy` attributes are driven by the current mouse position from the `onMouseMove` event. No external data source is used; the interaction is purely based on user input.

AI-generated description

A program that follows yoyur mouse with a circle.

MIT Licensed

Similar vizzes