Skip to main content
100%

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

✓ Published0🌍 Public
BBaji-2000
Last edited Feb 20, 2022
Created on Feb 20, 2022

A smiley face drawn with D3.js animates its eyebrows upward and back down in a repeating cycle. The face is composed of SVG shapes: a red circle for the head, two circles for eyes, rectangles for eyebrows, and a path for the mouth. The code uses D3 v5's selection and transition methods to move the eyebrow group via the `attr` tween. The animation runs on a 2000-millisecond duration for each movement phase, creating an infinite loop of eyebrow raises.

AI-generated description

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

MIT Licensed

Similar vizzes