Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Bbanegit
Last edited Jan 14, 2021
Created on Jan 14, 2021

A full-screen React SVG component renders a single circle that follows the mouse as it moves. The app tracks mouse coordinates using React's `useState` hook and handles `onMouseMove` events on the SVG element, updating the circle's `cx` and `cy` attributes in real time. The initial position is centered in the window, and the circle radius is fixed at 30 pixels. No external data source is used; the visualization simply demonstrates interactive state-driven rendering with React and SVG.

AI-generated description

Program that follows your mouse with a circle.

MIT Licensed

Similar vizzes