Skip to main content
100%

Mouse Follower

✓ Published2🌍 Public
Rrsulli4
Last edited Apr 28, 2023
Created on Apr 28, 2023

A yellow circle follows the mouse cursor across an SVG canvas. The visualization tracks pointer movement and repositions the circle to match the cursor’s coordinates in real time. Built with React, it uses the `useState` hook to store the mouse position and an `onMouseMove` event handler on the SVG element to update that state. The circle renders via ReactDOM with SVG markup, and its `cx` and `cy` attributes are bound to the current mouse coordinates.

AI-generated description

a program that followed your mouse with a circle.

MIT Licensed

Similar vizzes