🌍 Public
Viewing a saved revision (read-only)
1c8ffb7c743a47e9af439024379a988e
Fork of Mouse Follower
This visualization demonstrates a smiley face that follows the user’s mouse cursor across an SVG canvas. Built with React hooks (`useState`, `useCallback`), the app tracks `clientX` and `clientY` coordinates from an `onMouseMove` event, updating the circle’s `cx` and `cy` attributes. The rendering uses React’s `ReactDOM.render` to inject the SVG into the DOM, while D3 v5 is loaded but not directly utilized in the interaction logic.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.