Mouse Follower And Resizer
✓ Published1🌍 Public
A green circle follows the mouse cursor across a full-screen SVG canvas. Clicking the mouse grows the circle’s radius by 10 pixels, while shift-clicking shrinks it, with a minimum size of zero. Built with React components and event handlers, the code uses React’s `useState` and `useCallback` hooks to track mouse position and radius, rendering the circle via SVG elements and updating on each mouse event.
AI-generated descriptionFollow the mouse and resize.
MIT Licensed