Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

mouse_follower

Public visualization

Viewing a saved revision (read-only)

30179ca0539549bc8cbbc29982e79317

mouse_follower

0 stars0🌍 Public
CCyc-Evelyn
Last edited Oct 7, 2020
Created on Oct 7, 2020
Forked from face_html

A yellow circle follows the mouse cursor across a blank SVG canvas, updating its position in real time as the user moves the pointer. The visualization uses React state with the `useState` and `useCallback` hooks to track mouse coordinates, and ReactDOM renders the circle via SVG. D3 v6’s `arc` function is imported but unused; the core interaction relies on the SVG `onMouseMove` event handler. The fixed canvas is 960 by 500 pixels, with the circle’s radius set to 30.

AI-generated description

A bare minimum HTML page. ep14