Skip to main content
100%

Fork of Mouse Follower

✓ Published1🌍 Public
PPrince Rajasingh Paulraj
Last edited Mar 1, 2021
Created on Mar 1, 2021
Forked from Mouse Follower

A circle follows the mouse cursor across an SVG canvas. The visualization updates the circle’s position in response to every mouse movement event. Built with React 16.9, it uses the `useState` hook to track the cursor’s `clientX` and `clientY` coordinates and the `useCallback` hook to handle the `onMouseMove` listener. The circle’s center is set via `cx` and `cy` attributes on the SVG `<circle>` element, with a fixed radius of 30 pixels.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes