Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Aalexandermodell
Last edited Feb 21, 2022
Created on Feb 21, 2022

A circle tracks the mouse cursor across a full-screen SVG canvas, redrawing its position in real time. The visualization demonstrates state-driven rendering with React, using the `useState` hook to store cursor coordinates and `onMouseMove` to capture events. A React component updates the circle’s `cx` and `cy` attributes dynamically, while the SVG viewport matches the browser window’s dimensions. The example uses the React and ReactDOM libraries to manage the interactive element without any external data source.

AI-generated description

A program which follows your mouse.

MIT Licensed

Similar vizzes