🌍 Public
Viewing a saved revision (read-only)
42fe13d387d64804b57d44ea392fc52c
Fork of Let's make a face with D3.js!
This example shows a yellow smiley face rendered in SVG, with its eyebrows animating upward and downward in a repeating loop. The code builds the face using D3.js v5, appending circles for the eyes, rectangles for the eyebrows, and an arc-generated path for the mouth. Eyebrow motion is driven by chained `transition().duration()` calls that toggle the group’s translate transform. The visualization demonstrates fundamental DOM manipulation and animation with `d3.select`, `d3.arc`, and SVG element creation.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.