Skip to main content
100%

Smiley Face Follower

✓ Published1🌍 Public
Aalexislanz
Last edited Aug 2, 2021
Created on Aug 2, 2021
Forked from My Smiley Faces

A smiley face rendered with React and SVG components follows the mouse cursor across a 960×480 canvas. The face is composed of reusable subcomponents: `BackgroundCircle`, `Eyes`, and `Mouth`, with the mouth drawn using the D3 `arc` generator. Mouse movement updates React state via `onMouseMove`, repositioning the face through a `<g>` transform in `FaceContainer`. The example demonstrates combining React's declarative component structure with D3's geometric utilities for interactive SVG visualization.

AI-generated description

A Smiley that follows your mouse.

Why does it clip on movement?

MIT Licensed

Similar vizzes