Making a face with D3.js
This example builds a cartoon face from layered SVG shapes using D3.js v5, including eyes, eyebrows, a mouth, nose, blush, ears, earrings, a tongue, hair, and a mole. All elements are drawn with basic shapes like circles, rectangles, and an arc-generated path. The eyebrows animate up and down using chained `transition().duration()` calls, creating a simple facial expression. The code imports `select` and `arc` from the D3 library and constructs the face on a 960×500 SVG canvas with a light steel blue background.