Skip to main content
100%

Fork of tukaz make a face 2

✓ Published0🌍 Public
LLucas Fiorini
Last edited May 31, 2022
Created on May 31, 2022
Forked from tukaz make a face

This example shows a single cartoon face rendered with SVG that can be dragged around the screen by pressing and holding the mouse button. The face is built from React components for the head, eyes, and mouth, using D3's `arc` generator to draw the mouth shape. The app tracks mouse movement via React state and event handlers, repositioning the face container absolutely within the page whenever the mouse moves while pressed. With a viewport height of 500 pixels, the face follows the cursor freely, demonstrating a simple interactive drag interaction in a React and D3 hybrid setup.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes