🌍 Public
Viewing a saved revision (read-only)
fa1a641fc9b14737bab760b89d037a77
Mouse Follower
This example shows a single black-outlined circle that follows the mouse cursor across an SVG canvas. Built with React and rendered as SVG, it tracks pointer movements using the `onMouseMove` event handler, which updates the circle's `cx` and `cy` coordinates via React's `useState` and `useCallback` hooks. The initial position is centered on a 960×500 viewport, and the circle has a fixed radius of 15 pixels.
AI-generated descriptionPrograma que acompanha o mouse com um circulo