Skip to main content
100%

Smilly face

✓ Published2🌍 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

MIT Licensed

Similar vizzes