🌍 Public
Viewing a saved revision (read-only)
0c4668b01a854b14932e9348456ce144
Let's make a face with D3.js!
This example uses D3.js to draw a cartoon smiley face as an SVG, then animates its eyebrows with a looping transition. The face is composed of circles and rectangular eyebrows that move up and down over two seconds using D3’s `transition` API. The code demonstrates fundamental DOM selection and element creation via `select` and `append`, while the mouth is formed using the `arc` shape generator. The animation runs continuously, showing basic attribute manipulation and chained transitions.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.