Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

a01571437d1c4914ac10aa9d4aa60edf

Fork of Mouse Follower

0 stars0🌍 Public
Bbhavani44
Last edited May 21, 2022
Created on May 21, 2022
Forked from Mouse Follower

An interactive React application displays a single circle that follows the mouse cursor across an SVG canvas. The code tracks pointer movement through React’s `useState` and `useCallback` hooks, updating the circle’s `cx` and `cy` attributes on every mouse event. Built with React 16.9 and rendered via ReactDOM, it demonstrates a simple state-driven visualization without any external animation or data libraries. The SVG viewport is fixed at 960 by 500 pixels, with the circle starting at the center until the user moves the mouse.

AI-generated description

A program that follows your mouse with a circle.