Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
GGayan Priyadarshana
Last edited Jul 26, 2023
Created on Jul 26, 2023
Forked from Hello VizHub

A circle follows the mouse cursor inside a fixed-size SVG canvas, with its position updating in real time as the pointer moves. The React component uses the `useState` hook to store the cursor coordinates and the `useCallback` hook to handle the `onMouseMove` event, updating the circle's `cx` and `cy` attributes. The visualization is rendered with React and ReactDOM, using an SVG `<circle>` element. No external data source is used; the interaction is driven entirely by browser mouse events.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes