Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
Ssucotton9
Last edited Jul 11, 2021
Created on Jul 11, 2021

A circle follows the mouse cursor across an SVG canvas, updating its position in real time. The visualization uses React state to track mouse coordinates via the `onMouseMove` event listener, then renders the circle’s `cx` and `cy` attributes accordingly. It relies on React 16.9, ReactDOM, and the SVG renderer within a fixed 960×500 viewport, with no external data source.

AI-generated description

Circle that follows your mouse.

Comments

Sign in to join the discussion.

MIT Licensed