Skip to main content
100%

Let's make a Face with D3.js

✓ Published2🌍 Public
IImmaculata-Mary Muoghalu
Last edited Apr 17, 2021
Created on Apr 16, 2021
Forked from Shapes with SVG

A static SVG face built with D3.js includes circles for eyes, a path for a mouth, and rectangular eyebrows, all positioned using the `arc` generator and SVG attributes. Clicking an "Eye me!" button triggers a `transition` on the eyebrows group, moving them upward and back down over two 2-second intervals. The example uses D3 v5 modules like `select`, `arc`, and `transition.attr` to animate the facial expression, demonstrating object and array handling in JavaScript.

AI-generated description

An example tutorial of how to use Javascript objects, arrays, and modules.

MIT Licensed

Similar vizzes