Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

6e5b5bd4875540caa26681f0edbbfd6e

Fork of Mouse Follower

0 stars0🌍 Public
Yyushen
Last edited Apr 24, 2021
Created on Apr 24, 2021
Forked from Mouse Follower

An interactive React application renders an SVG circle that follows the mouse cursor. The code tracks pointer position through an SVG `onMouseMove` event handler, updating React state via the `useState` and `useCallback` hooks to reposition the circle. Rendering uses React 16.9 and ReactDOM, with the circle initially centered at 480,250 on a 960x500 canvas. No external charting libraries are used; the visualization relies purely on declarative JSX and SVG elements to demonstrate reactive mouse tracking.

AI-generated description

A program that follows your mouse with a circle.