Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
SSarah Elkeurti
Last edited Apr 3, 2022
Created on Apr 3, 2022

A React and SVG visualization that tracks the mouse cursor with a single circle. The circle's position updates live as the user moves over a 960 by 500 SVG canvas, using React's `useState` and `useCallback` hooks to manage the cursor coordinates and an `onMouseMove` event handler. The circle is rendered as an SVG `<circle>` element with a fixed radius of 30 pixels, while the initial position is centered on the screen.

AI-generated description

A program that follows your math wit ha circly

MIT Licensed

Similar vizzes