Skip to main content
100%

D3 Lets make a face

✓ Published0🌍 Public
11995ana
Last edited Apr 1, 2020
Created on Apr 1, 2020

A cheerful cartoon face drawn with SVG animates its features using D3 transitions. The code selects an SVG element and uses D3’s `arc` generator to morph a mouth from an open grin to a filled shape over three seconds. Eyes blink by scaling their radius, while rectangular eyebrows shift vertically in sync. Built with React and D3 v5, the example leverages chained `transition().duration()` calls to create simple, looping motion between states.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes