Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars0🌍 Public
BbeauMarko
Last edited Jan 21, 2021
Created on Jan 21, 2021

A React application renders an SVG circle that follows the mouse cursor across a 960×500 viewport. The circle’s position updates via React’s `useState` and `useCallback` hooks, triggered by the SVG’s `onMouseMove` event, which captures `clientX` and `clientY` coordinates. Using `ReactDOM.render`, the app displays a single black-outlined circle whose center tracks the pointer’s movement in real time.

AI-generated description

A program that follows your mouse with a cricle.

Comments

Sign in to join the discussion.

MIT Licensed