Skip to main content
100%

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

✓ Published0🌍 Public
AAdam Usmani
Last edited Feb 17, 2021
Created on Feb 17, 2021

A smiling cartoon face is drawn with SVG shapes, including a yellow circle for the head, black circles for eyes, rectangular eyebrows, and an arc-based mouth. The eyebrows animate upward and back downward over four seconds using chained D3 transitions. The code uses d3-selection to append elements to an SVG canvas and d3-shape’s `arc()` function to generate the mouth path. The face is centered via a group transformation, with eye spacing and offsets defined as constants.

AI-generated description
MIT Licensed

Similar vizzes