Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
Zzykel
Last edited Oct 26, 2021
Created on Oct 26, 2021
Forked from Mouse Follower

A circle follows the mouse cursor across an SVG canvas, updating its position in real time as the pointer moves. The visualization uses React 16.9 with the `useState` and `useCallback` hooks to manage and update the circle's coordinates. The SVG element handles the `onMouseMove` event, and the circle's center is set via the `cx` and `cy` attributes, rendering at a fixed 30-pixel radius on a 960-by-500 viewport.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes