Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower - JAT

Public visualization

Mouse Follower - JAT

0 stars1🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed