Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
Ttatpiras
Last edited Sep 12, 2021
Created on Sep 12, 2021
Forked from Hello HTML

A static SVG circle initially sits at the center of a 960×500 viewport, but its position is updated in real time through React’s `onMouseMove` event handler. The `handleMouseMove` function logs the cursor’s `clientX` and `clientY` coordinates to the console as the mouse moves across the container. Rendered with React 16.9 and D3 v7, the example demonstrates a minimal interactive pattern where the circle’s location could be tied to mouse input, though the code currently only captures and reports the coordinates.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes