Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
SSerjoA
Last edited Jul 6, 2019
Created on Jul 6, 2019

A D3.js example animates a cartoon face, with its eyebrows moving to convey expression. The SVG rendering features a red background and a simple character built from basic shapes. The code uses the `d3.select` method to access the SVG element and `d3.arc` for the mouth. The animation leverages D3's DOM manipulation capabilities to update the eyebrow positions. The project is structured with an `index.html` file that loads D3 v5 from a CDN, along with separate `index.js` and `styles.css` files for logic and styling.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes