Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse follower

Public visualization

Viewing a saved revision (read-only)

bd3452d0e71f43d8ae739fe09a8e8c04

Mouse follower

0 stars0🌍 Public
MMaleehak
Last edited Jan 16, 2021
Created on Jan 16, 2021
Forked from Mouse Follower

A circle tracks the mouse in real time across the full browser window. Built with React and SVG, the component uses React's `useState` hook to store the pointer's coordinates, updating them on each `mousemove` event via the SVG `onMouseMove` handler. The circle's `cx` and `cy` attributes are bound to these state values, smoothly rendering its position on every move.

AI-generated description

Program that follows your mouse with a circle.