Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

mouse follower

Public visualization

mouse follower

0 stars1🌍 Public
Kkhaled mohamed
Last edited Apr 24, 2021
Created on Apr 24, 2021
Forked from React Starter

A single gray circle with a red outline follows the mouse cursor within an SVG canvas. The circle’s position updates directly from the cursor’s client coordinates, which are logged to the console and stored in React state via the `useState` hook and an `onMouseMove` handler. The visualization uses React and ReactDOM to render the SVG, with a fixed radius and initial center position. No external data source is used; the interaction is purely based on live pointer movement.

AI-generated description

mouse follower

Comments

Sign in to join the discussion.

MIT Licensed