Skip to main content
100%

Let's make a face with D3.js!

✓ Published2🌍 Public
MMuhammad Jarir Kanji
Last edited Dec 16, 2020
Created on Dec 16, 2020

A smiling face made of SVG shapes is drawn in the center of the canvas. The animation, powered by D3.js v5, continuously moves the rectangular eyebrows up and down using chained `transition().duration(2000)` calls. The face components are built with D3's `select` and `append`, while the mouth uses the `arc` function to generate a semicircular path.

AI-generated description

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

MIT Licensed

Similar vizzes