Skip to main content
100%

Let's make a face

✓ Published3🌍 Public
CChristoph Diefenthal
Last edited Mar 4, 2020
Created on Mar 4, 2020

This example draws a simple yellow face in an SVG canvas, with two eyes, animated eyebrows that bounce up and down, and a mouth created using an arc path. The face is centered on a 960 by 500 pixel SVG, and the animation is driven by chained `transition` calls that move the eyebrow group vertically. The code uses D3 v5 selections and the `d3.arc` API to construct the mouth shape, with hardcoded pixel values for facial features.

AI-generated description
MIT Licensed

Similar vizzes