Skip to main content
100%

Let's make a face with D3.js

✓ Published11🌍 Public
BbeauMarko
Last edited Oct 8, 2020
Created on Jul 11, 2020
Forked from HTML Starter

A yellow circle with a black outline forms a face, featuring two eyes, animated eyebrows, and a mouth drawn as an arc. The eyebrows move up and down repeatedly using D3's `transition().duration()` chaining. The face is built with a centered `<g>` group, using D3 selections in React to append `circle`, `rect`, and `path` elements to an SVG. The mouth is generated with the `d3.arc()` generator, and all positioning is based on computed height and width attributes.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes