Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

e00f8f4137f348fb8e979843ab352209

Mouse Follower

0 stars0🌍 Public
Aajardev
Last edited Aug 6, 2022
Created on Jul 13, 2022

A React component tracks the mouse position across the full browser window and renders a single SVG circle that follows the cursor in real time. The circle’s center coordinates update through the `useState` hook and the `onMouseMove` handler on the SVG element, which captures `clientX` and `clientY` from the event. Rendered using ReactDOM, the visualization demonstrates basic state-driven SVG interaction without any external data or animation library.

AI-generated description

A program that follows your mouse with a circle.