Fork of Mouse Follower1
✓ Published0🌍 Public
This example demonstrates a simple interactive visualization where a circle follows the mouse cursor within an SVG canvas. The code, written in React, uses the `useState` hook to track the mouse position and updates the circle’s `cx` and `cy` properties on every mouse move event. Rendered through ReactDOM and SVG, the visualization responds directly to cursor movement, with no data source beyond the live pointer coordinates. The circle’s radius is fixed, and the canvas dimensions are set to 960 by 500 pixels.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed