Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

9022207d61e0444e83d025a7630434dc

Mouse Follower

0 stars1🌍 Public
Hhukbk
Last edited Apr 10, 2021
Created on Apr 4, 2021
Forked from Mouse Follower

A circle follows the mouse cursor across an SVG canvas. The visualization uses React's `useState` hook to track the cursor's current coordinates, updating the circle's `cx` and `cy` attributes on every mouse move event. The React component renders the SVG directly, with the circle's position bound to the state value. The canvas is set to a fixed width and height, and the mouse position is captured via the SVG's `onMouseMove` handler. Both React and ReactDOM are loaded from UMD packages.

AI-generated description

Kreis soll Maus folgen