Skip to main content
100%

Mouse Follower

✓ Published1🌍 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

MIT Licensed

Similar vizzes