Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
AAbdulhaq Adetunji Salako
Last edited Aug 6, 2020
Created on Aug 6, 2020

A full-screen React SVG tracks the cursor with a single black circle, centering the circle on the mouse position as it moves. The app uses React's `useState` and `useCallback` hooks to manage and update the mouse coordinates, which are rendered as the `cx` and `cy` attributes of an SVG `<circle>` element. The circle has a fixed radius of 30 pixels, and the SVG canvas spans the entire browser window, with the initial mouse position set to the center of the viewport.

AI-generated description

A program that follow your mouse with a circle

MIT Licensed

Similar vizzes