Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
SSatyam Sundaram
Last edited May 12, 2021
Created on May 12, 2021
Forked from Mouse Follower

A circle follows the mouse cursor across an SVG canvas, changing its fill color to a random RGB value on every mouse movement. The React application tracks mouse coordinates via the `onMouseMove` event handler, updating state with `useState` and `useCallback` from React 16.9.0. The SVG element is rendered through ReactDOM, with the circle's position and color properties bound directly to the current mouse position and a randomly generated color string. This creates an interactive visualization where the circle's appearance changes continuously as the user moves the pointer.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes