Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Fork of Mouse Follower

0 stars0🌍 Public
DDaniel Tkach
Last edited Sep 26, 2021
Created on Sep 26, 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 tracks pointer movement through an `onMouseMove` event handler, updating positional state via `useState` and `useCallback`. The circle’s center coordinates (`cx`, `cy`) are bound to the current mouse position, while its radius is fixed at 30 pixels. React 16.9 and ReactDOM manage the UI, with the SVG scene updating in real time as the user moves the mouse.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed