Skip to main content
100%

Mouse Follower - JAT

✓ Published1🌍 Public
JJason Tiller
Last edited Mar 1, 2021
Created on Mar 1, 2021

This example displays a static SVG circle at the center of a 960x500 canvas using React and ReactDOM, with a mouse-move handler that logs the cursor's client coordinates to the console. The circle does not actually move or react visually; the interaction is limited to capturing and printing mouse position events. The code imports React, uses the `onMouseMove` SVG event, and renders a single `<circle>` element with fixed `cx`, `cy`, and `r` attributes.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes