Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
Bbrunoevione
Last edited Mar 20, 2021
Created on Mar 19, 2021

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 description

Programa que acompanha o mouse com um circulo

MIT Licensed

Similar vizzes