Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
MMoise
Last edited Aug 24, 2023
Created on Aug 24, 2023

A circle follows the mouse cursor across an SVG canvas, updating its position in real time. The example uses React's `useState` and `useCallback` hooks to manage mouse coordinates, with the `onMouseMove` event handler updating the circle's center. D3's `arc` module is imported but not used, while the SVG `<circle>` element is rendered directly through ReactDOM. The visualization demonstrates a simple interactive pattern without any data source or animation logic beyond direct mouse tracking.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes