Skip to main content
100%

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

✓ Published0🌍 Public
Nnagasai-gummadi
Last edited Feb 23, 2023
Created on Feb 23, 2023

A smiley face built with D3.js animates its eyebrows in a looping upward-and-downward motion. The face is composed of SVG shapes: a yellow circle for the head, two circles for eyes, rectangles for eyebrows, and an arc-generated path for the mouth. The code uses D3 selections and the `arc` generator from `d3-shape`, along with chained `transition` calls to move the eyebrow group over repeated two-second intervals.

AI-generated description

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

MIT Licensed

Similar vizzes