Skip to main content
100%

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

✓ Published0🌍 Public
SSANEEM MOHAMMAD
Last edited Feb 21, 2023
Created on Feb 21, 2023

A D3.js animation shows a smiley face with a yellow head, eyes, a mouth, and rectangular eyebrows that move up and down in a repeating cycle. The face is built by manipulating SVG shapes, including circles for the head and eyes, a path for the mouth, and rectangles for the eyebrows. The code uses d3.select and d3.arc, and iterates transitions with the .transition() method to animate the eyebrows over two-second intervals. The background is set to black via d3.select("body").style().

AI-generated description

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

MIT Licensed

Similar vizzes