Skip to main content
100%

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

✓ Published0🌍 Public
TTejaswicmandava
Last edited Feb 25, 2023
Created on Feb 25, 2023

This example shows an animated smiley face with moving eyebrows, created entirely in SVG using D3.js v5. It demonstrates fundamental DOM manipulation by appending and styling circles, rectangles, and paths for facial features, with eyebrow transitions that repeat via chained `transition` calls. The face is centered in a 960x500 SVG canvas, and the code relies on D3's `select`, `arc`, and transition APIs to build the static features and animate the eyebrows over four-second cycles.

AI-generated description

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

MIT Licensed

Similar vizzes