Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
EErdogan Onur Eroglu
Last edited Aug 6, 2023
Created on Aug 6, 2023

A circle follows the mouse cursor across an SVG canvas, updating its position in real time to mirror the pointer's movement. The React component tracks mouse coordinates through the `onMouseMove` event handler, storing them in state with the `useState` hook and updating via `useCallback`. The circle is rendered as an SVG `<circle>` element, with its `cx` and `cy` attributes driven by the current mouse position.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes