Skip to main content
100%

AVN - Fork of Let's make a face with D3.js

✓ Published0🌍 Public
Aavnreddy95
Last edited Jun 18, 2022
Created on Jun 18, 2022

A cartoon face rendered with D3.js v5 draws a yellow circle head with black-outlined eyes, a nose, eyebrows, and an arc-based mouth. The eyes and eyebrows are grouped and animated using chained `transition().duration()` calls, moving the brows up and down over two seconds. The code imports `select` and `arc` from D3, builds the SVG in a React-free HTML page, and centers the face via a translated `<g>` element. The mouth path uses `d3.arc` with inner and outer radii and angle ranges.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes