Skip to main content
100%

Fork of Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
SSharmaAshwini
Last edited Feb 23, 2023
Created on Feb 23, 2023

A playful D3.js animation renders a cartoon smiley face from SVG primitives, including a pink circle head, eyes, arched eyebrows, a red nose, a mouth, and white teeth. Using D3’s `arc()` generator, the mouth and eyebrow paths are drawn, while `transition()` and `duration()` animate the eyebrows moving up and down at different speeds. The code constructs groups with `append("g")`, positions elements via `attr("transform", ...)`, and imports utilities like `select` and `arc` from the d3 module.

AI-generated description

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

MIT Licensed

Similar vizzes