Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

c42a12228da24e58898bc01cfd8e51ea

Fork of Mouse Follower

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