Fork of Mouse Follower
✓ Published0🌍 Public
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.
MIT Licensed