Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

70784da65f054325945bf9fc171c1269

Mouse Follower

0 stars1🌍 Public
CCaroline Ghisolfi
Last edited Dec 17, 2022
Created on Dec 17, 2022
Forked from Hello VizHub

A 960-by-500 SVG circle follows the mouse cursor across the canvas, its center updating in real time to match the pointer’s client coordinates. Built with React and ReactDOM, the example uses the `useState` hook to store the cursor position and a `useCallback`-wrapped `onMouseMove` event handler to update it. The SVG circle is rendered with a fixed radius of 30 pixels, demonstrating state-driven drawing within a minimal React component.

AI-generated description