Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Ssalwa191
Last edited May 3, 2021
Created on May 3, 2021
Forked from HTML Starter

This example shows a cheerful yellow face built from SVG shapes that animates its eyebrows up and down. The code uses D3.js version 5 to select the SVG element, append circles for the eyes and face, and draw the mouth with the `arc` generator. Eyebrow rectangles are animated using chained `transition().duration()` calls, moving vertically over two seconds. The static geometry derives from numeric constants for spacing and sizing, with the face centered via a transformed group.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes