Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
Ssachin rai
Last edited Dec 18, 2023
Created on Dec 18, 2023
Forked from Mouse Follower

A circle tracks the mouse across a 960-by-500 SVG canvas, centering itself on the pointer’s coordinates as it moves. The React app uses the `useState` hook to store the mouse position and the `useCallback` hook to update it on every `mousemove` event. The circle is rendered as an SVG `<circle>` element with its `cx` and `cy` attributes bound to the state, while the SVG’s `onMouseMove` handler triggers the position update. No data source is involved; the visualization simply demonstrates interactive rendering with React and SVG.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes