Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
AAnton Koukharski
Last edited Aug 5, 2019
Created on Aug 1, 2019

A face made of SVG shapes is drawn and animated with D3.js v5, using a yellow circle for the head, green eyes, and black eyebrows. The code uses `d3.select` and `d3.arc` to construct the mouth, while chained `transition().duration()` calls animate the eyebrows upward and the mouth into a wider smile over two seconds. The static SVG canvas is 960 by 500 pixels, with all elements positioned relative to the center via a translated `<g>` group.

AI-generated description
MIT Licensed

Similar vizzes