Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

a57c20016eba4174bafb6877d0f2f36e

Mouse Follower

0 stars1🌍 Public
AAndy Chang
Last edited Sep 27, 2022
Created on Sep 27, 2022

A React component renders an SVG circle that follows the mouse cursor across the full browser window. The circle's position updates continuously through React state and the onMouseMove event handler, using useState and useCallback hooks. The SVG viewport matches the window dimensions, and the circle starts at the center before responding to pointer movements.

AI-generated description

A program that follows your mouse with a circle.