Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

circle that follows mouse move

Public visualization

circle that follows mouse move

0 stars1🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed