Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Bbellotukurm
Last edited Sep 15, 2019
Created on Sep 15, 2019

A yellow smiley face built with SVG appears on screen, with a red cap that slides back and forth. The face’s eyebrows move up and down in a looping animation. Built using D3.js v5, the code demonstrates fundamental DOM manipulation through selections, appending circles, rectangles, and paths, and uses the `arc` generator for the mouth. Transitions with `transition().duration()` animate the cap and eyebrows by changing their `transform` attributes.

AI-generated description

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

MIT Licensed

Similar vizzes