Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
NNikkor
Last edited Sep 12, 2018
Created on Sep 10, 2018

This example shows a stylized face built from SVG shapes in D3.js, with animated eyebrows and a mouth that subtly changes expression over time. The face is constructed using an ellipse, circles for the eyes and pupils, polylines for the eyebrows, and an arc-generated path for the mouth. The animation uses D3 transitions with a duration of 2000 milliseconds to move the eyebrow group vertically and adjust the mouth’s arc angles, demonstrating fundamental DOM manipulation with selection and append methods from D3 v5.

AI-generated description

Ming Zhang <br> Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes