Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Ddanielchamone
Last edited Oct 31, 2019
Created on Oct 28, 2019

A yellow SVG face with black-outlined eyes and an animated mouth is drawn using D3.js v5. The face is centered via an SVG group transform, with circles for the eyes and an arc-based path for the mouth. Eyebrows are rectangles that transition vertically twice over two seconds using D3's `transition().duration()`. The code uses `d3.select`, `d3.arc`, and SVG attributes like `attr('d', ...)`, rendering entirely in SVG with no external data source.

AI-generated description
MIT Licensed

Similar vizzes