Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
Jjasonamey
Last edited Sep 12, 2023
Created on Sep 12, 2023
Forked from Mouse Follower

This React visualization displays a single circle that follows the mouse cursor across an SVG canvas. The application uses React hooks (`useState` and `useCallback`) to track the pointer position and re-render the circle’s coordinates on every mouse movement. The `onMouseMove` event handler captures `clientX` and `clientY`, updating the circle’s `cx` and `cy` attributes. Rendering is handled by ReactDOM, with the SVG elements defined directly in JSX and styled via an external stylesheet.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes