Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

02aca6e0100441c6930485d9100bc4bd

Mouse Follower

0 stars2🌍 Public
Hhukbk
Last edited Apr 12, 2021
Created on Apr 12, 2021
Forked from Mouse Follower

A circle follows the mouse cursor across an SVG canvas as the user moves the pointer. The React component tracks the cursor’s `clientX` and `clientY` coordinates through an `onMouseMove` event handler, updating the circle’s `cx` and `cy` attributes via the `useState` and the component state. The visualization uses React 16.9 and ReactDOM to render the graph, with the SVG resized to 960 by 500 pixels and a constant circle radius of 30.

AI-generated description

Kreis soll Maus folgen (Fertig)