Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Fork of Mouse Follower

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed