Skip to main content
100%

Fork of Mouse Follower

✓ Published1🌍 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.

MIT Licensed

Similar vizzes