Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of mouse follower

Public visualization

Fork of mouse follower

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed