Fork of Mouse Follower
✓ Published2🌍 Public
A circle follows the mouse cursor within a fixed-size SVG canvas, updating its position in real time. The visualization uses React’s `useState` to track the cursor coordinates and a `useCallback` handler triggered by the SVG’s `onMouseMove` event. The circle’s center (`cx`, `cy`) is bound to the stored mouse position, while the radius remains constant at 30 pixels. The React DOM renders the SVG directly, with the initial position centered at half the canvas dimensions (968×550).
AI-generated descriptionKreis soll Maus folgen (Fertig)
MIT Licensed