Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

338f8babd396450fa1425fab074e75da

Fork of Mouse Follower

0 stars0🌍 Public
CCristina Macaraig
Last edited Jul 16, 2021
Created on Jul 16, 2021
Forked from Mouse Follower

A React application renders an SVG circle that tracks the mouse cursor across a 960 by 500 viewport. The component uses React's `useState` and `useCallback` hooks to manage and update the circle's center coordinates on every `onMouseMove` event. The circle starts centered and moves smoothly as the user's pointer travels over the SVG element, demonstrating basic interactive state management with React and SVG rendering.

AI-generated description

A program that follows your mouse with a circle.