Fork of Mouse Follower
✓ Published0🌍 Public
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.
MIT Licensed