🌍 Public
Viewing a saved revision (read-only)
23ea03b4ddad4d00b2ed03d9a5ee83f5
Smile face using D3.js
This example builds a smiling face with SVG shapes using D3.js v5. It draws a yellow circle for the head, two black circles for the eyes, and an arc-generated mouth using the `arc()` function. Animated eyebrow rectangles transition vertically via `transition.attr`, moving them up and down repeatedly. The face is centered with a group transformation, and all shapes are styled with fill and stroke attributes.
AI-generated descriptionAn example including some commonly used features of SVG.