Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

024b932222544b6d9dae699e1b1580f5

Mouse Follower

0 stars1🌍 Public
Aazharahmad0
Last edited Mar 21, 2021
Created on Mar 21, 2021

A single black circle follows the mouse cursor across an empty SVG canvas. The circle's position is updated in real time as the cursor moves, using React's `useState` and `useCallback` hooks to track `clientX` and `clientY` coordinates. The example renders with `ReactDOM.render` and imports `arc` from D3 v5, though the visible output is purely a responsive circle.

AI-generated description

A program that follows your mouse with a circle.