Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
TTakashi-KK
Last edited Sep 8, 2022
Created on Sep 6, 2022

A yellow circle follows the mouse as it moves across a blank SVG canvas. The visualization tracks the cursor position in real time, rendering the circle at the exact coordinates of the pointer. Built with React and ReactDOM, it uses SVG’s `onMouseMove` event handler to capture the cursor’s client coordinates and update the circle’s `cx` and `cy` attributes. The circle maintains a constant radius of 30 pixels within a 960 by 500 viewport.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes