Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
EErik
Last edited Sep 8, 2021
Created on Sep 7, 2021

A red circle follows the mouse cursor across an SVG canvas, updating its position in real time as the user moves. Built with React and D3 v5, the app uses React’s `useState` and `useCallback` hooks to track mouse coordinates via the SVG `onMouseMove` event, then re-renders the circle’s `cx` and `cy` attributes accordingly. No data source is involved; the visualization simply demonstrates interactive event handling and state-driven rendering with SVG.

AI-generated description

Programme where a circle follows your mouse.

MIT Licensed

Similar vizzes