Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse follower

Public visualization

Mouse follower

0 stars1🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed