Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
Rrajamrit-singh
Last edited Jan 17, 2023
Created on Jan 17, 2023

A single gray circle follows the mouse cursor across an SVG canvas. The circle’s position updates in real time based on the mouse’s client coordinates, mapped directly to SVG `cx` and `cy` attributes. Built with React hooks (`useState`, `useCallback`) and rendered via `ReactDOM`, the app listens to the SVG’s `onMouseMove` event, updating the circle’s location on every movement. No data source is used; the visualization simply demonstrates interactive pointer tracking with React and SVG.

AI-generated description

A program that follows mouse

Comments

Sign in to join the discussion.

MIT Licensed