Skip to main content
100%

Let's make a face

✓ Published4🌍 Public
OOleg
Last edited Oct 28, 2020
Created on Oct 28, 2020

This example uses D3.js (v6) to build a simple yellow face from SVG shapes, including circles for the eyes and an arc path for the mouth. A `transition()` with a two-second duration animates the eyebrows by shifting their vertical position, then returns them to the original offset, creating a repeated bobbing motion. The code defines dimensions and offsets as variables and uses SVG attributes like `cx`, `r`, and `d` with the `arc()` generator.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes