🌍 Public
Viewing a saved revision (read-only)
60aab85945c24317a54564ae8e1ceb6b
Mouse Follower
A black circle follows the mouse cursor across a blank SVG canvas, centering itself on the pointer's exact coordinates. The visualization demonstrates a simple interactive loop using React's `useState` and `useCallback` hooks to track `clientX` and `clientY` positions from a mouse move event, while D3 v6 handles SVG rendering. The circle has a fixed radius of 30 pixels and starts at the canvas center before responding to user movement.
AI-generated descriptionA program that follows your mouse with a circle.