Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
Iiffath.namira@csedge.org
Last edited Jan 9, 2025
Created on Jan 9, 2025
Forked from 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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes