Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

88b8e50aeccd4ff581118058f98a9d38

Mouse Follower

0 stars0🌍 Public
SSoujanya C. Aryal
Last edited Dec 30, 2023
Created on Dec 30, 2023

A single black circle follows the mouse cursor across a blank SVG canvas. The circle’s position updates in response to mouse movement via a React state hook (`useState`) and an `onMouseMove` event handler. The example uses React 16.9 for component rendering and event handling, with the SVG element created directly in JSX. No external data or D3 functions are used; only React’s state management drives the dynamic repositioning.

AI-generated description

A prog4ram that follows your mouse