Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
EEdwin Cini
Last edited Mar 7, 2021
Created on Mar 7, 2021

A friendly cartoon face is assembled from basic SVG shapes, with animated eyebrows that rise and fall. The example demonstrates reusable geometric primitives and declarative transitions in D3 v6. It uses `d3.select` and `d3.arc` to construct the mouth, while circles and rectangles define eyes and brows. The `transition().duration()` chain animates the eyebrow group’s transform attribute over two sequential two-second phases. Rendering targets an SVG canvas, with styles and layout handled by CSS.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes