Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed