Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
AAnthony Le
Last edited Jul 27, 2024
Created on Jul 26, 2024

A circle follows the mouse cursor across an SVG canvas, updating its position in real time with each mouse move. The React component uses the `useState` hook to store the cursor's coordinates and a `useCallback` handler to update them from mouse events. Rendering is handled by ReactDOM, which draws a single SVG circle element with its `cx` and `cy` attributes bound to the current mouse position.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes