🌍 Public
Viewing a saved revision (read-only)
a17636cbc1074b15b153e32a6e0eb9a5
Mouse following Circle
This example shows a single circle that follows the mouse cursor as it moves over an SVG canvas. The circle’s center coordinates are updated on every mouse movement event, re-rendering the shape in real time. Built with React, it uses the `useState` hook to manage the mouse position and an `onMouseMove` handler on the SVG element. The visualization demonstrates a straightforward interaction pattern, rendering with ReactDOM and the SVG namespace, with no data source involved.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.