Skip to main content
100%

Making a

✓ Published2🌍 Public
Nnouralkhoury
Last edited Nov 21, 2020
Created on Sep 27, 2020

A smiley face drawn with SVG shapes animates its features: the right eye slides horizontally, and the left eyebrow shifts vertically. The example demonstrates fundamental DOM manipulation with D3.js v5, using `select` to target the SVG element and `append` to create circles, a rectangle, and a path. The mouth is generated with the `d3.arc` API, which computes an annular sector path. Transitions with `.transition().duration()` animate the eye and eyebrow attributes over time.

AI-generated description

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

MIT Licensed

Similar vizzes