🌍 Public
Viewing a saved revision (read-only)
b2071f2d5d934877a0bf2d314a70e759
Fork of Fork of Let's make a face with D3.js!
A smiley face built with D3.js animates by raising and lowering its eyebrows. The code selects an SVG canvas and constructs the face from basic shapes, including circles for eyes and a path for the mouth using `d3.arc`. Eyebrow movement is achieved with chained `transition().duration()` calls that shift the rectangle positions over two seconds. The example uses D3 v5, imported via `d3.select` and `d3.arc`.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.