Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse follower

Public visualization

Mouse follower

0 stars1🌍 Public
JJacob Pingel Lauridsen
Last edited Jan 12, 2023
Created on Jan 12, 2023

A yellow circle follows the mouse cursor across a 960 by 500 SVG canvas. Built with React and ReactDOM, the app tracks pointer coordinates via an `onMouseMove` handler on the `<svg>` element, updating the circle's `cx` and `cy` attributes through component state. The example demonstrates reactive SVG rendering driven by user interaction, with no external data source.

AI-generated description

Interaction with React - A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed