Skip to main content
100%

lets make a face with d3.js

✓ Published2🌍 Public
Mmoowaffles
Last edited Feb 13, 2021
Created on Feb 13, 2021
Forked from svg and CSS stuff

A simple cartoon face built with D3.js animates its eyebrows and smile on a yellow circular head. The SVG rendering uses D3 selections, circles, rectangles, and an arc path, with `d3.arc()` generating the smile shape. Transitions via `transition().duration()` move the eyebrows upward and adjust the smile’s inner radius over two seconds. The code leverages D3 v5, React, and explicit coordinate transforms centered on the SVG canvas.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes