Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

149755d68932433183aeb650b7fabdd4

Fork of Mouse Follower

0 stars0🌍 Public
Ssyedshowmic
Last edited Apr 3, 2022
Created on Apr 3, 2022
Forked from Mouse Follower

This example uses React to render an SVG circle that follows the mouse pointer across a 960×500 canvas. The component tracks the mouse position with the `useState` hook and updates it on every `mousemove` event via `handleMouseMove`. The circle’s center coordinates are set directly from the event’s `clientX` and `clientY` values, producing a simple interactive follower. React 16.9 and ReactDOM are loaded from UMD builds, with the SVG output defined declaratively in JSX.

AI-generated description

A program that follows your mouse with a circle.