Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
Aallicia1202
Last edited Sep 18, 2022
Created on Sep 18, 2022

A yellow circle follows the cursor across an SVG canvas. The visualization tracks the mouse's absolute client coordinates and updates the circle's `cx` and `cy` attributes in real time. Built with React, it uses the `useState` hook to store the mouse position and an `onMouseMove` handler on the `<svg>` element to capture movement. The rendering is done via React's declarative SVG output, with the canvas sized at 960 by 500 pixels.

AI-generated description

A Program that follows your mouse with a circle.

MIT Licensed

Similar vizzes