🌍 Public
Viewing a saved revision (read-only)
a3d066e7bb7345dea45a7ea801766d13
Fork of Mouse Follower
This example uses React and SVG to render a circle that follows the mouse cursor across a 960-by-500 pixel viewport. The circle’s position is updated via React state and the `onMouseMove` event handler, which captures `clientX` and `clientY` coordinates. The SVG viewport lacks a visible background, and the circle maintains a fixed radius of 30 pixels, starting at the center of the screen until the user moves the pointer.
AI-generated descriptionA program that follows your mouse with a circle.