Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

069452292792411d95940613fc66a00e

Mouse Follower

0 stars1🌍 Public
AAchilleasTyrnenopoulos
Last edited Nov 13, 2021
Created on Nov 13, 2021

A yellow circle rendered in SVG follows the mouse cursor as it moves across a 960 by 500 pixel canvas. Built with React and ReactDOM, the application tracks cursor coordinates through the `onMouseMove` event handler and updates the circle's position via the `useState` hook. The circle's center is set to the current `clientX` and `clientY` values from the event, providing immediate visual feedback.

AI-generated description

A program that follows your mouse with a circle.