Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

4d693bf8b33a4777ae47e164295a6f08

Mouse Follower

0 stars1🌍 Public
NNick Hartmann (Data Science)
Last edited Sep 6, 2021
Created on Sep 6, 2021
Forked from Hello HTML

A small orange circle follows the mouse cursor as it moves across an SVG canvas. The visualization uses React with the `useState` hook to track the cursor’s `clientX` and `clientY` coordinates from the SVG `onMouseMove` event, updating the circle’s `cx` and `cy` attributes accordingly. Rendered as SVG within a React component, it demonstrates cursor tracking and reactive state updates. D3 and ReactDOM are also imported in the page setup.

AI-generated description

A program that follows your mouse with a circle