Skip to main content
100%

Mouse Follower

✓ Published2🌍 Public
SSpyros Armaos
Last edited Jan 22, 2022
Created on Jan 21, 2022

A yellow circle follows the mouse cursor within a fixed 960-by-500 SVG canvas. The React application tracks the pointer's client coordinates on the `svg` element and updates the circle's center position accordingly. The visualization uses React's `useState` and `onMouseMove` event handler, with `ReactDOM.render` to mount the component. The circle has a radius of 30 pixels and no fill color, rendering as a thin outline that trails the mouse movements across the blank white background.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes