Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
Eetiosa
Last edited Jan 20, 2021
Created on Jan 20, 2021

A yellow smiley face with animated eyebrows demonstrates fundamental D3.js DOM manipulation. The code uses d3-selection to append SVG circles, rectangles, and an arc-generated mouth path onto a central group. Two sequential `transition` calls with 2000-millisecond durations move the eyebrows down and back up. D3 v5's `select` and `arc` utilities handle element selection and path geometry, while SVG attributes define the face's static features and the animation loop controls the eyebrow motion.

AI-generated description

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

MIT Licensed

Similar vizzes