Skip to main content
100%

Fork to Make a face

✓ Published1🌍 Public
Rraphman100
Last edited Aug 7, 2021
Created on Aug 7, 2021

A yellow smiley face with animated eyebrows demonstrates basic D3.js DOM manipulation and SVG rendering. The code uses `d3.select`, `d3.append`, and `d3.arc` to build the face, while sequential `transition().duration()` calls move the eyebrows up and down in a two-second cycle. The static SVG elements—circle, rectangles, and path—are positioned using translation transforms, with no external data source beyond fixed constants.

AI-generated description

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

MIT Licensed

Similar vizzes