Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smilly face

Public visualization

Viewing a saved revision (read-only)

abe5283c18714dd383dc769b4eba117d

Smilly face

0 stars2🌍 Public
SShasvathan Pathmanaban
Last edited Nov 14, 2021
Created on Nov 13, 2021
Forked from Hello HTML

A yellow circle follows the mouse cursor across a blank SVG canvas, with its position updating in real time as the user moves the pointer. Built with React (using the `useState` hook and event handlers), the circle is rendered as an SVG `<circle>` element whose `cx` and `cy` attributes are bound to the current mouse coordinates. The code uses ReactDOM to mount the component and handles `onMouseMove` events on the `<svg>` element to track the cursor.

AI-generated description

A program that follows your mouse with a circle