Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
Kkevin-jake
Last edited Apr 6, 2022
Created on Apr 6, 2022
Forked from Smiley Part 1

A smiley face rendered in SVG follows the mouse cursor across a yellow background. The face, built from React components for the background circle, eyes, and a d3.arc-generated mouth, updates its position via React state on every mousemove event. The visualization uses React’s useCallback and useState hooks to track client coordinates, re-rendering the face container at the new location.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed