Skip to main content
100%

Forking with this Face for Fun.js!

✓ Published0🌍 Public
Ddldowning
Last edited Feb 25, 2023
Created on Feb 21, 2023

Two cartoon faces rendered side-by-side in SVG each animate their eyebrows upward and downward in a repeating two-second transition. Built with D3 v5, the example constructs each face from circles, rectangles, and arc paths, positioning elements via `svg.append` and `g.attr` transforms. Duplicated code blocks define a red face with a hat and collar, and a blue face with asymmetric pupils, showing fundamental DOM manipulation through D3 selections, `transition.duration`, and the `arc` generator for the nose and mouth shapes.

AI-generated description

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

MIT Licensed

Similar vizzes