Skip to main content
100%

MouseFollower

✓ Published1🌍 Public
Mmiklud
Last edited Mar 20, 2021
Created on Mar 20, 2021
Forked from Fork of Hello HTML

A smiling face made of SVG circles and an arc follows the cursor across a brown background. The face, composed with React components, updates its position through a mouse-move event handler on an SVG element. The state hook `useState` tracks the cursor coordinates, and `useCallback` memoizes the event handler. The mouth is drawn using `d3.arc()` with specified inner and outer radii, while the eyes and background circle are plain SVG circles. The face translates as a group within an SVG container, responding live to pointer movement.

AI-generated description

A program that follow your mouth with a circle.

MIT Licensed

Similar vizzes