🌍 Public
Viewing a saved revision (read-only)
2adc4a92ef724d9aafde282f50c161dd
Assignment 1 Tweak a Face!
A smiling face drawn with SVG shapes animates its eyebrows upward and back down. The visualization uses D3 v5 to construct and position a yellow circle for the head, rectangles for eyes and eyebrows, and an arc for the mouth. The code relies on D3's `select` and `arc` APIs, plus chained `.transition().attr()` calls to animate the eyebrow group's vertical translation over two seconds.
AI-generated descriptionAuthor: Weijie Pang