Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Fork of Mouse Follower

0 stars1🌍 Public
HHui Wang
Last edited Nov 8, 2022
Created on Nov 8, 2022
Forked from Mouse Follower

A circle follows the mouse cursor within an SVG canvas, responding to every movement by updating its center coordinates. This example uses React’s `useState` to track the pointer position and D3’s `arc` (though not directly applied), with the SVG’s `onMouseMove` event triggering a state update that repositions the circle. The visualization runs inside an HTML page that imports React and D3 via CDN, rendering through `ReactDOM.render`.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed