Skip to main content
100%

MakeFace

✓ Published0🌍 Public
BBolarinwa Omoware
Last edited Apr 7, 2022
Created on Apr 7, 2022

A yellow smiley face with animated eyebrows demonstrates fundamental D3.js DOM manipulation. The face is assembled from SVG shapes—circles for the eyes, rectangles for the eyebrows, and a path drawn with the d3.arc generator for the mouth—all centered using a group transform. Two chained `.transition().duration(2000)` calls repeatedly move the entire eyebrow group up and down, creating a bobbing effect. The example uses d3.v5's `select`, `arc`, and transition methods to build and animate the composition directly in the browser.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes