Skip to main content
100%

let's make a face with d3.js

✓ Published0🌍 Public
BBun
Last edited Dec 7, 2020
Created on Dec 7, 2020

A yellow circle face with black eyes, animated eyebrows, and a curved smile is drawn using D3.js v5. The example builds the face with SVG shapes, including `circle` and `rect` elements, and an `arc` path for the mouth. Eyebrows transition vertically up and down over two seconds using `transition.attr`. The code imports `select` and `arc` from d3, sets an initial SVG size, and groups elements around a centered translation.

AI-generated description
MIT Licensed

Similar vizzes