🌍 Public
Mouse Folower
This example demonstrates a simple interactive visualization where a circle follows the mouse cursor across the entire browser window. Built with React and rendered as an SVG, the app uses the `useState` and `useCallback` hooks to track mouse coordinates from `onMouseMove` events and update the circle’s `cx` and `cy` attributes. The circle is initially centered on the screen and moves smoothly in response to cursor movement, with its radius fixed at 30 pixels.
AI-generated descriptionA program that follow your mouse with a circle.
MIT Licensed
Comments
Sign in to join the discussion.