Skip to main content
100%

Fork of making face with D3.js!

✓ Published0🌍 Public
MM Hema
Last edited Mar 18, 2024
Created on Feb 26, 2024

A smiley face with animated eyebrows demonstrates basic D3.js DOM manipulation and SVG rendering. The code uses `d3.select` to target the SVG, then appends groups and shapes including circles, rectangles, and a path for the mouth via `d3.arc`. Two eyebrow rectangles transition vertically using chained `transition.attr` calls with specified durations, creating a repeated eyebrow raise effect. The static face elements render in pink with black outlines, while only the eyebrows animate.

AI-generated description

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

MIT Licensed

Similar vizzes