Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

f2745947d7ab4934a697e5a9acf93a7d

Fork of Mouse Follower

0 stars0🌍 Public
RRoberto
Last edited Jul 13, 2023
Created on Jul 13, 2023
Forked from Mouse Follower

A circle follows the mouse cursor across an SVG canvas, responding in real time to pointer movement. The example demonstrates React state management with a `useState` hook and `useCallback` for the mouse event handler, while ReactDOM renders the SVG circle at the updated coordinates. It uses React 16.9.0 and renders entirely via SVG elements, with the initial circle positioned at the center of a 960×500 viewport.

AI-generated description

A program that follows your mouse with a circle.