🌍 Public
Viewing a saved revision (read-only)
a594b0fc3b324618a1cd09543b9656c7
Mouse Follower (JM copy)
This example shows a simple interactive visualization: a red circle echoes the user’s mouse position within an SVG canvas. The circle responds in real time, maintaining its center exactly where the cursor moves over the 960×500 display. Built with React, the app uses the `useState` hook to store the cursor’s coordinates and a `useCallback` handler to update them on each mouse event. Mouse movement data comes from the `onMouseMove` event, which captures the `clientX` and `clientY` properties.
AI-generated descriptionA program that follows your mouse with a circle.