Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

c3162edc2d06425d82b7b7f4f4bea329

Fork of Mouse Follower

0 stars0🌍 Public
DdapperAuteur
Last edited Mar 19, 2021
Created on Mar 18, 2021
Forked from Mouse Follower

A circle follows the mouse cursor across an SVG canvas, recentering itself as the pointer moves. The example uses React hooks `useState` and `useCallback` to manage the mouse position and update the circle’s `cx` and `cy` attributes via the SVG `onMouseMove` event. Rendering is handled by React DOM, with the visualization limited to a static circle whose radius remains constant.

AI-generated description

A program that follows your mouse with a circle.