Skip to main content
100%

Fork of mouse follower

✓ Published0🌍 Public
MMatheusKukac
Last edited Apr 25, 2023
Created on Apr 25, 2023
Forked from mouse follower

A circle follows the mouse cursor across an SVG canvas, redrawing its position in real time. The visualization uses React’s `useState` to track mouse coordinates from `onMouseMove` events, updating the circle’s `cx` and `cy` attributes. It relies on ReactDOM for rendering and imports the `arc` function from D3 v7, though the core interaction is state-driven rather than D3-based.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes