Skip to main content
100%

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

✓ Published0🌍 Public
SSANEEM MOHAMMAD
Last edited Feb 24, 2023
Created on Feb 24, 2023

A smiley face with light green circular head, black-outlined eyes, and a double-arc mouth animates its rectangular eyebrows upward and downward in a looping transition. The example demonstrates fundamental DOM manipulation with D3.js v5, using `select`, `append`, and `transition` to move SVG elements. Eye and eyebrow spacing are controlled via offset constants, while the mouth is drawn with the `d3.arc` path generator. The animation runs continuously, with each eyebrow movement taking two seconds in each direction.

AI-generated description

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

MIT Licensed

Similar vizzes