Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars0🌍 Public
Sshencode76
Last edited Jan 5, 2022
Created on Jan 2, 2022
Forked from Mouse Follower

A circle tracks the mouse cursor across a full-browser SVG canvas. The React application uses the `useState` hook and a `handleMouseMove` callback with `onMouseMove` to update the circle's `cx` and `cy` attributes in response to pointer movement. The rendering relies on ReactDOM's `render` method to draw the single SVG circle element, with dimensions set from the window's inner width and height.

AI-generated description

A program that follows your mouth with a circle

Comments

Sign in to join the discussion.

MIT Licensed