Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

287dd9bfe9744d7cbd3dd9b867d93b92

Fork of Mouse Follower

0 stars1🌍 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.