Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
Aaidatabaeva
Last edited Dec 22, 2022
Created on Dec 22, 2022

A smiling yellow face is drawn entirely in SVG, with its features initially arranged in a neutral expression before an animated sequence runs once on load. The eyes overlay white pupils, while the black eyebrows and mouth rotate into angled positions over two seconds. The example demonstrates core D3.js v5 DOM manipulation and transitions using `d3.select`, `append`, and `transition.attr`, constructing the mouth with the `d3.arc` path generator. All shapes are positioned via SVG transform attributes and transitions, with no external data source.

AI-generated description

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

MIT Licensed

Similar vizzes