Skip to main content
100%

ICE-4

✓ Published0🌍 Public
PPrasanth Damarla
Last edited Feb 21, 2022
Created on Feb 20, 2022
Forked from ICE-4

A yellow smiley face is drawn in the center of a 960x500 SVG canvas, with two eyes, a mouth, and eyebrows. The code uses D3.js v5 to select the root SVG element and append a group, circle, and path for the face and mouth. The animation animates the eyebrows upward and back down over four seconds by applying sequential D3 transitions to the group's transform attribute. All shapes are styled with SVG attributes for fill, stroke, and dimensions, and the example demonstrates fundamental DOM manipulation with D3's `select`, `append`, `attr`, and `transition` APIs.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes