Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
Cchamce
Last edited Jun 19, 2021
Created on Jun 19, 2021
Forked from Mouse Follower

A React application renders an SVG circle that follows the mouse cursor across a 960 by 500 viewport. The component uses React hooks (`useState`, `useCallback`) to track mouse coordinates via the SVG `onMouseMove` event, updating the circle's `cx` and `cy` attributes. The initial position is centered, and the circle responds to pointer movement within the SVG element. Rendering uses React DOM with the production build of React 16.9.0.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed