Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
SSergey Shulzhenko
Last edited May 26, 2023
Created on May 26, 2023
Forked from Mouse Follower

A circle follows the mouse cursor across a 960 by 500 SVG canvas, updating its position in real time as the pointer moves. The React app uses the `useState` hook to store the current mouse coordinates and the `useCallback` hook to handle the `onMouseMove` event on the SVG element. The rendered circle’s center is bound to the state, and ReactDOM re-renders the element on every mouse movement. The visualization relies on React 16.9.0 and SVG for its rendering.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes