🌍 Public
Viewing a saved revision (read-only)
317d7027111f49d09de5c7dbf005d0a2
Fork of tukaz make a face 2
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 descriptionA bare minimum HTML page.