Let's make a face with D3.js!
✓ Published0🌍 Public
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.
MIT Licensed