Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
Yyingzhe-z
Last edited Mar 15, 2021
Created on Mar 15, 2021

Built with D3 v5, this example builds a smiling face from SVG primitives, including a yellow circle head, eyes, a mouth drawn with the `arc` generator, and rectangular eyebrows. The `transition` API animates the eyebrows' vertical position over four seconds, moving them up and then back down. All elements are positioned relative to a centered `g` container using hand-coded offsets.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes