Skip to main content
100%

Fork of face

✓ Published1🌍 Public
EEbenizerR
Last edited Dec 13, 2021
Created on Dec 13, 2021
Forked from face

This example shows a simple smiley face built with D3.js, rendered as SVG with a yellow circle, eyes, and a mouth. The code demonstrates fundamental DOM manipulation by using `d3.select` to append elements and `transition.attr` to animate the eyebrows, which move upward and then back down in a looping 2-second cycle. It relies on the D3 v5 API, including `arc` for the mouth path, with dimensions defined by hardcoded constants for spacing and radii.

AI-generated description

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

MIT Licensed

Similar vizzes