Skip to main content
100%

Epxerimeting on Mouse Follower

✓ Published0🌍 Public
SSpyros Armaos
Last edited Jan 22, 2022
Created on Jan 22, 2022
Forked from Mouse Follower

A React and SVG experiment uses the `useState` and `useCallback` hooks to track pointer movement within an SVG canvas. As the mouse moves across the `onMouseMove` event, the circle's `cx` and `cy` attributes update to the `clientX` and `clientY` coordinates, making the circle follow the cursor. The rendering relies on React's declarative updates to redraw the SVG circle element in real time.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes