Skip to main content
100%

Let's make a face with D3.js!

✓ Published2🌍 Public
MMelina
Last edited Jun 11, 2020
Created on Jun 11, 2020

A D3.js animation draws a yellow smiley face with eyes, a mouth, and eyebrows that move. The SVG is centered, and the code uses D3's `select` and `append` to build shapes, `arc` for the mouth path, and `transition().duration(2000)` twice to animate the eyebrow group up and down in a repeating sequence. The face is static except for the eyebrows, which shift vertically.

AI-generated description

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

MIT Licensed

Similar vizzes