Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

mouse follower

Public visualization

Viewing a saved revision (read-only)

ae3b332d94e94c369afa9e395ea96e83

mouse follower

0 stars1🌍 Public
Mmauricio-acosta-reyes
Last edited Apr 17, 2021
Created on Apr 17, 2021

A yellow circle follows the mouse cursor across a dark SVG canvas. The visualization uses React with hooks (`useState`, `useCallback`) to track pointer coordinates from an `onMouseMove` event on an SVG element, updating the circle’s `cx` and `cy` attributes in real time. The circle starts at the viewport’s center and moves smoothly, demonstrating a simple interactive pattern built with React 16.9 and ReactDOM.

AI-generated description

program that follows mouse with circle