Fork of Mouse Follower
✓ Published0🌍 Public
This example demonstrates a mouse-following circle rendered in an SVG coordinate space. The React component tracks pointer movement using a `useState` hook and updates the circle’s `cx` and `cy` attributes in response to `onMouseMove` events. The circle’s position mirrors the cursor’s `clientX` and `clientY` coordinates, with no additional data source or animation logic. The visualization relies on React 16.9 and ReactDOM, rendering directly to SVG elements with hard-coded canvas dimensions of 960 by 500 pixels.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed