Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
KKaitlyn Boyle
Last edited Dec 28, 2021
Created on Dec 28, 2021

A circle follows the mouse cursor as it moves across an SVG canvas. The visualization uses React state to track the cursor’s X and Y coordinates, updated via the `onMouseMove` event handler, and re-renders the circle’s position. The SVG and ReactDOM render the circle, with the initial position set to the canvas center.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed