Skip to main content
100%

Let's make a face with D3.js

✓ Published1🌍 Public
AAdam Usmani
Last edited Feb 15, 2021
Created on Feb 15, 2021

This visualization constructs a cartoon face from basic SVG shapes using D3.js v6, including a yellow circle for the head, black circles for eyes, rectangles for eyebrows, and an arc-generated mouth. The eyebrows animate up and down repeatedly through chained `transition.duration` calls, moving their vertical position by 50 pixels and back. The face is centered in a 960x500 SVG canvas, with all elements grouped and positioned via transform attributes and hardcoded constants for spacing and dimensions.

AI-generated description
MIT Licensed

Similar vizzes