Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follow Circle

Public visualization

Mouse Follow Circle

0 stars0🌍 Public
AAlexClaz
Last edited Mar 5, 2022
Created on Mar 5, 2022
Forked from CSS Color Data Vis

A circle follows the mouse cursor across a fixed-size SVG viewport, updating its position in real time. The example uses React state to track the cursor’s client coordinates via an `onMouseMove` handler, then renders the circle’s `cx` and `cy` attributes. It demonstrates a minimal integration of SVG with React hooks, without using D3’s data-joining or animation APIs.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed