Skip to main content
100%

circle that follows mouse move

✓ Published1🌍 Public
MMohammed Banani | MbDev
Last edited May 4, 2022
Created on May 4, 2022

A yellow circle follows the mouse cursor across a full-window SVG canvas. The React component tracks pointer position using the `onMouseMove` event and updates state via `useState` and `useCallback`, re-rendering the circle's `cx` and `cy` coordinates. The viewport dimensions are set from `window.innerWidth` and `window.innerHeight`.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes