Skip to main content
100%

Mouse Interaction

✓ Published0🌍 Public
YYu Nazarova
Last edited Mar 15, 2021
Created on Mar 15, 2021

A mouse-following circle rendered as a React SVG component tracks the cursor's position across the full viewport. The circle is fixed at the center of the window, while the `onMouseMove` event handler logs the `clientX` and `clientY` coordinates to the console. The code uses React 16.9.0 with `ReactDOM.render` to mount an SVG element sized to `window.innerWidth` and `window.innerHeight`. No external data source is involved; the interaction is purely based on browser mouse events.

AI-generated description

Program that is drawing the circle following your mouse

MIT Licensed

Similar vizzes