Skip to main content
100%

Let's make a face with D3.js

✓ Published3🌍 Public
CClara Hu
Last edited Mar 22, 2021
Created on Mar 22, 2021

A yellow circle with black outlines forms a smiling face, featuring two black eyes and rectangular eyebrows that animate upward and then return to their original position. The face is constructed with D3.js v5 using SVG elements, including circles for the face and eyes, rectangles for the eyebrows, and a path generated with the d3.arc() API for the mouth. The eyebrows transition via chained transition().duration() calls on a group element, which shifts their vertical offset by 50 pixels over two seconds before resetting.

AI-generated description
MIT Licensed

Similar vizzes