🌍 Public
Fork of Let's make a face with D3 change.js!
This example shows a simple animated smiley face built with D3.js. The face is rendered as SVG elements, including a yellow circle for the head, two eyes, and a mouth made with an arc path. The demonstration focuses on fundamental DOM manipulation, primarily using D3's `select` and `append` methods to construct the scene. It also illustrates basic animation through chained `transition().duration()` calls, which move the eyebrows up and down in a looping sequence. The code uses D3 v5 and relies on the `arc` generator to define the mouth's shape.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed








Comments
Sign in to join the discussion.