🌍 Public
Viewing a saved revision (read-only)
9ef42d37a4cd4f31b0b274cc1e663f2c
Assignment 1 Tweak a Face!
A cheerful yellow circle with a surprised expression animates its facial features. The face, centered in an SVG canvas, uses rectangles for eyes and eyebrows and an arc path for the mouth. D3 transitions sequentially move the entire eye group downward and the eyebrows upward, creating a playful, winking-like motion. The code builds the face with d3.select, d3.arc, and chained transition().duration() calls, all rendered as static SVG shapes that animate over time.
AI-generated descriptionAuthor: Weijie Pang