Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
MMadNietzsche
Last edited Jul 14, 2021
Created on Jul 13, 2021

A yellow circle follows the mouse cursor across an SVG canvas, updating its position in real time as the pointer moves. The visualization uses React's `useState` and `useCallback` hooks to track mouse coordinates, which are then passed to the SVG circle's `cx` and `cy` attributes. The D3 library is imported but only for its `arc` function, which is unused; the rendering relies entirely on React and SVG properties.

AI-generated description

A program that follows your mouse with a circle

MIT Licensed

Similar vizzes