Skip to main content
100%

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

✓ Published0🌍 Public
Mmd-Junaid
Last edited Jun 1, 2021
Created on Jun 1, 2021

A D3.js v5 example constructs a smiling face entirely from SVG shapes, including a circle head, eyes, and an arc-based mouth. The animation focuses on the eyebrows, which move up and down via a chained `transition().duration(2000)` call, demonstrating fundamental DOM manipulation. The code uses D3's `select` to target the SVG element and `arc` to generate the mouth's path, with all facial features positioned relative to the canvas center via SVG group translations.

AI-generated description

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

MIT Licensed

Similar vizzes