🌍 Public
Viewing a saved revision (read-only)
82d61f7bf35b4c9ca71730f0a7f929bf
Mouse Follower
A yellow circle follows the mouse cursor as it moves across an SVG canvas. The visualization uses React state management with the `useState` and `useCallback` hooks to track the cursor's `clientX` and `clientY` coordinates, updating the circle's `cx` and `cy` attributes via React's render cycle. The SVG is rendered by ReactDOM, while D3 v5 is loaded but not directly used in this example. The circle maintains a fixed radius of 30 pixels and responds immediately to pointer movement within the 960×500 viewport.
AI-generated descriptionA program that follows your mouse with a circle