Skip to main content
100%

Mouse follower

✓ Published1🌍 Public
TTaeyoung Ahn
Last edited Aug 16, 2021
Created on Aug 13, 2021

A filled circle follows the mouse in real time across a full-screen SVG canvas. The application is built with React (using `useState` and `useCallback` for state management and event handling) and renders the circle as an SVG `<circle>` element. The circle's `cx` and `cy` coordinates update directly from the mouse's `clientX` and `clientY` values, with its position reset to the viewport's center on initial load. No external data is involved; the visualization responds solely to user input.

AI-generated description

a program that follows your mouse with a circle

MIT Licensed

Similar vizzes