Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse follower

Public visualization

Viewing a saved revision (read-only)

b09319ffcf3b4ad4a4217bb0c6e0369c

Mouse follower

0 stars1🌍 Public
FFloorNummer
Last edited Sep 28, 2021
Created on Sep 28, 2021

A yellow circle follows the mouse cursor within an SVG canvas, updating its position in real time. The visualization uses React’s `useState` and `useCallback` hooks to track mouse coordinates via the `onMouseMove` event, and renders the circle with SVG elements. The code imports React and ReactDOM, and sets initial mouse position at the canvas center.

AI-generated description

A program that follows your mouse with a circle.