Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
GGuillaume Loslier-Pinard
Last edited Jan 15, 2022
Created on Jan 15, 2022
Forked from Mouse Follower

A React-powered SVG visualization tracks the cursor with a purple ellipse. As the mouse moves across the 960×500 viewport, the ellipse’s center updates in real time via the `onMouseMove` handler. The `useState` hook stores the current mouse coordinates, while `useCallback` optimizes the event handler. The component renders a single `<ellipse>` element using React DOM, with a fixed `rx` of 40 and `ry` of 25. The visualization demonstrates reactive state management without external data sources or animation libraries.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes