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
Mmax12525k
Last edited Aug 29, 2021
Created on Aug 29, 2021
Forked from Mouse Follower

A circle follows the mouse cursor inside an SVG canvas, moving to the exact pixel coordinates of the pointer. The visualization uses React with a `useState` hook to track the mouse position, updating on every `onMouseMove` event fired by the SVG element. The circle’s center and radius are set via SVG attributes, and the chart is rendered through ReactDOM into an HTML div. The code is a React-based fork of a mouse-follower example, using the standard React event handling system for interaction.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed