Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
DDavid Trye
Last edited Jun 5, 2020
Created on Jun 5, 2020

This example uses D3.js v5 to construct a cartoon face from basic SVG shapes, including a yellow circle for the head, two eyes, and a mouth drawn with the `arc` function. Eyebrows are animated using chained `transition` calls, moving them down and back over two seconds each. The code arranges all parts within an SVG, using React for scaffolding and numeric attributes for positioning.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes