Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Jjunge870214
Last edited Jan 21, 2019
Created on Jan 21, 2019

A yellow smiley face is drawn using SVG shapes with D3.js v5, including two eyes, a mouth created via the `d3.arc` generator, and rectangular eyebrows. The eyebrows animate upward and back down over two sequential two-second `transition` calls on their containing group’s `transform` attribute. The code demonstrates fundamental DOM manipulation by selecting the root `svg` element, appending groups, and positioning shapes with absolute coordinates derived from the viewport dimensions.

AI-generated description

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

MIT Licensed

Similar vizzes