Skip to main content
100%

MouseFollower

✓ Published0🌍 Public
DDonna Perygin
Last edited Mar 4, 2021
Created on Mar 4, 2021

A React component uses the useState hook to track the mouse position and renders this data as an SVG circle that follows the cursor. The circle’s cx and cy attributes update directly from the clientX and clientY coordinates captured by the onMouseMove event on an SVG element. The example demonstrates a minimal interactive visualization with React and SVG.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes