🌍 Public
Viewing a saved revision (read-only)
ff2f84de9f984282a8c55d6cef13c0c7
Fork of Let's make a face with D3.js!
This example displays a stylized smiley face drawn on an SVG canvas, with eyebrows that animate in a repeating up-and-down motion. Built using D3.js v5, the code constructs the face by appending circle, rect, and path elements to an SVG group, and drives the animation with the `transition` API to move the eyebrow group’s `transform` attribute over two-second intervals. The mouth is rendered using the `arc` generator from d3, specifying inner and outer radii and angle parameters.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.