Skip to main content
100%

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

✓ Published1🌍 Public
MManideepChakilam
Last edited Feb 20, 2022
Created on Feb 20, 2022

A smiley face, drawn with yellow SVG shapes, demonstrates a looping eyebrow animation in D3.js v5. The code uses `d3.select` and `d3.arc` to construct the static face, while chained `transition().duration()` calls move the eyebrow rectangles up and down. All rendering occurs in an SVG container, with the face centered via a translation transform. The example illustrates fundamental DOM manipulation and basic animation sequencing in D3.

AI-generated description

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

MIT Licensed

Similar vizzes