Skip to main content
100%

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

✓ Published0🌍 Public
SSomu1433
Last edited Feb 24, 2023
Created on Feb 24, 2023

A smiley face built with D3.js animates by raising and lowering its eyebrows. The code selects an SVG canvas and constructs the face from basic shapes, including circles for eyes and a path for the mouth using `d3.arc`. Eyebrow movement is achieved with chained `transition().duration()` calls that shift the rectangle positions over two seconds. The example uses D3 v5, imported via `d3.select` and `d3.arc`.

AI-generated description

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

MIT Licensed

Similar vizzes