Skip to main content
100%

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

✓ Published0🌍 Public
SSuresh John Wesly
Last edited Feb 24, 2023
Created on Feb 24, 2023

A smiling face, rendered entirely with SVG shapes, animates as its rectangular eyebrows repeatedly lower and raise over a two-second cycle. Built with D3.js v5, the visualization demonstrates fundamental DOM manipulation by using `select` and `append` to construct the face from circles, rectangles, and an `arc`-generated path for the mouth. Eyebrow motion is driven by chained `transition().duration(2000)` calls that tween the rectangles' `transform` attributes, shifting them vertically within the SVG canvas.

AI-generated description

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

MIT Licensed

Similar vizzes