Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Ccharliemok
Last edited Mar 24, 2021
Created on Mar 24, 2021

A smiling face made of SVG shapes animates its eyebrows up and down in a loop. The demo shows how D3.js v5 selects and appends DOM elements, using `d3.select`, `d3.arc` for the mouth path, and chained `transition().duration()` calls to move the eyebrow group. A static yellow circle with black stroke forms the head, while black circles and rectangles compose the eyes and brows. The code relies on data-free hardcoded coordinates rather than a dataset.

AI-generated description

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

MIT Licensed

Similar vizzes