Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
NNick Hu
Last edited Mar 6, 2022
Created on Mar 6, 2022
Forked from Mouse Follower

A circle follows the mouse cursor across an SVG canvas, updating its position in real time. The visualization uses React with the `useState` hook to track mouse coordinates and rerender the circle’s `cx` and `cy` attributes. The app is built with React and ReactDOM, rendered into a full-screen SVG, with styling that hides page margins and scrollbars. The mouse movement is captured via an `onMouseMove` event handler on the SVG element.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes