Skip to main content
100%

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

✓ Published98🌍 Public
Fframptonb
Last edited Feb 14, 2023
Created on Feb 14, 2023

This example shows a yellow smiley face rendered in SVG, with its eyebrows animating upward and downward in a repeating loop. The code builds the face using D3.js v5, appending circles for the eyes, rectangles for the eyebrows, and an arc-generated path for the mouth. Eyebrow motion is driven by chained `transition().duration()` calls that toggle the group’s translate transform. The visualization demonstrates fundamental DOM manipulation and animation with `d3.select`, `d3.arc`, and SVG element creation.

AI-generated description

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

MIT Licensed

Similar vizzes