Skip to main content
100%

Mouse Follower co -ord console

✓ Published0🌍 Public
Jjeffmesie
Last edited Aug 23, 2021
Created on Aug 23, 2021

This example shows a simple SVG circle centered in a 960 by 500 viewport, with a console that logs the mouse’s coordinates whenever the cursor moves over the graphic. The circle itself does not move; instead, the demonstration focuses on capturing pointer position. Built with React 16.9, the app uses an `onMouseMove` event handler on the `<svg>` element to extract `clientX` and `clientY` values and print them to the browser’s dev console. The rendering relies on React’s virtual DOM and SVG elements, with no additional data sources.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes