Skip to main content
100%

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

✓ Published0🌍 Public
WWeiyiDeng
Last edited Feb 23, 2022
Created on Feb 23, 2022

A yellow smiley face drawn with SVG shows subtle animation: both eyes shrink and regrow over two seconds each, while the eyebrows shift upward and back. The code uses D3 v5 selections and transitions, with `select`, `arc`, and `transition.attr` to manipulate SVG circles, rectangles, and a path. The face is centered via a translated `g` element, and all motion loops once without user interaction.

AI-generated description

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

MIT Licensed

Similar vizzes