Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed