Skip to main content
100%

Let's make a face with D3.js

✓ Published2🌍 Public
Sshreyagoddu
Last edited Aug 15, 2020
Created on Aug 11, 2020
Forked from HTML Starter

This example uses D3.js to construct an animated cartoon face out of basic SVG shapes. A yellow circle serves as the head, with two black-eyed circles, rectangular eyebrows, and a mouth drawn using the `d3.arc` path generator. The eyebrows animate upward and back down through chained `transition().duration(2000)` calls, while the React framework manages the overall layout. All shapes are positioned relative to a central group, with dimensions derived from the SVG’s `width` and `height` attributes.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes