Skip to main content
100%

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

✓ Published0🌍 Public
Mmanasanimmagadda13
Last edited Feb 16, 2022
Created on Feb 16, 2022

A smiling face built with SVG shapes animates as its rectangular eyebrows rise and fall, creating a playful expression. The example demonstrates fundamental D3.js DOM manipulation by using `select` and `append` to construct circles for the face and eyes, `rect` elements for eyebrows, and an `arc` generator for the mouth. Eyebrow motion is achieved through chained `transition` calls on a group element, shifting its vertical position over two-second intervals. The code uses D3 v5 and relies on SVG attributes for positioning and styling.

AI-generated description

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

MIT Licensed

Similar vizzes