Skip to main content
100%

Let's make a face with D3.js

✓ Published5🌍 Public
Ccyro666
Last edited Mar 19, 2020
Created on Mar 17, 2020

A smiling yellow face with animated eyebrows is drawn entirely with SVG shapes, including circles for the head and eyes, rectangles for eyebrows, and an arc-generated mouth. The eyebrows rise and fall repeatedly via chained `transition` calls that animate the `transform` attribute over two seconds each. Built with D3 v5, the example uses `select` to manipulate the SVG, and imports the `arc` generator from the `d3` module to create the mouth path. A button click logs a message to the console.

AI-generated description
MIT Licensed

Similar vizzes