Skip to main content
100%

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

✓ Published1🌍 Public
PPriya Tiwari
Last edited Oct 3, 2023
Created on Oct 3, 2023

A smiling face rendered in SVG animates as its eyebrows repeatedly rise and lower, demonstrating basic shape construction and timed transitions with D3.js v5. The code builds the face from geometric primitives—circles for the eyes, rectangles for brows, and a path generated with the `arc` helper for the mouth—all positioned via SVG transforms. A chained `transition().duration()` sequence moves the eyebrow group up and down in a two-second loop, showing how to animate attributes without external data.

AI-generated description

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

MIT Licensed

Similar vizzes