Skip to main content
100%

Fork of Smiley face

✓ Published0🌍 Public
AArun
Last edited Mar 27, 2024
Created on Mar 27, 2024
Forked from Smiley face

A yellow smiley face is drawn on an SVG canvas, centered and sized to the viewport. The graphic shows a static face with two black eyes, eyebrows, and a curved mouth, while the eyes transition from their initial state to black over three seconds after a one-second delay. The code uses D3 v6 selections and transitions, including `transition.delay()` and `transition.duration()`, to animate the eye fill colors. The face is constructed with SVG circle, rect, and path elements, using `d3.arc()` for the mouth’s curved shape, all within a centered group.

AI-generated description

The graphic of "Smiley face"

MIT Licensed

Similar vizzes