Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Sscotti15
Last edited Mar 24, 2020
Created on Mar 24, 2020

A yellow circle with a black outline forms a face, complete with two eyes, animated eyebrows, and a curved mouth drawn using D3's `arc` generator. Eyebrow rectangles transition vertically via chained `transition().duration()` calls, moving down and back up over two seconds each way. The SVG is centered using a `g` element translated to the middle of a 960×500 viewport, with all shapes positioned relative to that origin. The example uses D3 v5, importing `select` and `arc` from the library.

AI-generated description
MIT Licensed

Similar vizzes