Skip to main content
100%

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

✓ Published0🌍 Public
GGroup 17
Last edited Feb 23, 2023
Created on Feb 23, 2023

A static smiley face built with SVG elements moves its rectangular eyebrows up and down as a looping animation. The code constructs the face using D3 v5 selections, appending a green circle for the head, two small circles for eyes, and an arc-generated path for the mouth. A two-stage `transition().duration(2000)` chain animates the eyebrow group's vertical position, translating it upward and then back to its original offset. The example demonstrates fundamental D3 DOM manipulation and chained transitions 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