Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Ccoltonjcox92
Last edited Jan 22, 2022
Created on Jan 22, 2022

A circle rendered as an SVG element follows the mouse cursor in real time. The React application tracks the pointer’s coordinates through the `onMouseMove` event on the SVG canvas and updates the circle’s `cx` and `cy` attributes accordingly. The visualization uses React’s `useState` hook for state management and `useCallback` for the event handler, with the SVG width and height fixed at 960 by 500 pixels.

AI-generated description

A program that follows your mouse with a circle

MIT Licensed

Similar vizzes