Skip to main content
100%

mouse follower

✓ Published1🌍 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

MIT Licensed

Similar vizzes