Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
Jjoepointon1
Last edited Mar 31, 2021
Created on Mar 31, 2021

A circle follows the mouse cursor across an SVG canvas, updating its position in real time to mirror the user's movements. The visualization uses React's `useState` hook to store the mouse coordinates and an `onMouseMove` event handler on the SVG element to update that state. The circle is rendered with ReactDOM in a production build, with the SVG dimensions fixed at 960 by 500 pixels and a circle radius of 30. No external data source is used; the interaction is entirely driven by pointer events.

AI-generated description

A program that follow your mouse with a circle

MIT Licensed

Similar vizzes