Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Ppsabela
Last edited Jan 31, 2021
Created on Nov 25, 2020
Forked from Smiley Face Part I

A yellow smiley face follows the mouse cursor across an SVG canvas, redrawing its position on every mouse movement event. The face is built from reusable React components—a yellow circle background, two black eye circles, and a mouth drawn with `d3.arc()`—all composed within a `<g>` transform. React state tracks the cursor’s `clientX` and `clientY` coordinates, triggering re-renders via `useState` and `useCallback`. A dropdown menu is present but not connected to the visualization.

AI-generated description

A program that follow a mouse with a circle HTML page.

MIT Licensed

Similar vizzes