Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
AAveryBurke
Last edited Jan 13, 2019
Created on Jan 12, 2019

A yellow face built from SVG shapes animates its eyebrows up and down in a looping sequence. Using D3.js v5, the example selects an SVG element and constructs the face with circles for the eyes and an arc-generated path for the mouth, all positioned dynamically based on the SVG’s dimensions. The eyebrows, rendered as rectangles, use D3’s `transition().duration()` method twice to create the repeated motion. The code imports `select` and `arc` from the D3 module, demonstrating core SVG manipulation and animation within a single static data-less visualization.

AI-generated description
MIT Licensed

Similar vizzes