Skip to main content
100%

Mouse follower

✓ Published1🌍 Public
VVictor Masson
Last edited Aug 20, 2021
Created on Aug 19, 2021
Forked from Smiley face 1/2

A circle follows the mouse cursor within an SVG canvas, updating its center position in real time. The visualization uses React's `useState` and `useCallback` to manage mouse-move events, while the SVG `onMouseMove` handler captures pointer coordinates. The circle’s `cx` and `cy` attributes are bound to the state, and the scene is rendered via `ReactDOM.render` with a D3.js library import for potential data handling.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes