Mouse Follower
✓ Published1🌍 Public
A circle follows the mouse cursor across an SVG canvas. The example uses React with a `useState` hook to track the mouse position, updating the circle's `cx` and `cy` attributes during `onMouseMove` events. It renders a single red circle with a radius of 30 pixels inside an SVG viewport sized 960 by 500 pixels, using D3.js version 7 and React 18.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed