Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse follower

Public visualization

Viewing a saved revision (read-only)

d64241e87da8403dabd0f216975475d2

Mouse follower

0 stars1🌍 Public
Mmattbwebster
Last edited Aug 28, 2021
Created on Aug 28, 2021

A circle follows the mouse cursor across a full-window SVG canvas, reacting in real time to pointer movement. The React component tracks mouse coordinates via the `onMouseMove` event, updating state with `useState` and `useCallback`, then re-renders the circle’s `cx` and `cy` attributes. The visualization uses React 16.9 and ReactDOM to render SVG elements directly in the browser.

AI-generated description

A program that follows your mouse with a circle