Skip to main content
100%

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

✓ Published0🌍 Public
AAvonlea Fisher
Last edited Feb 17, 2021
Created on Feb 10, 2021

A D3.js face is drawn with SVG shapes, featuring black circular eyes, a red mouth created with an arc generator, and eyebrows rendered as rectangles. The animated eyebrows shift downward and return via chained `transition()...duration()` calls, demonstrating movement within the SVG canvas. Built with D3 v6 selections, the code uses `d3.arc()` for the mouth path and manipulates SVG attributes like `cx`, `r`, and `transform` to position elements relative to the viewport center.

AI-generated description
MIT Licensed

Similar vizzes