Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
SSwetha Susan George
Last edited Aug 13, 2020
Created on Aug 13, 2020

A yellow circle with a black outline forms a face, featuring two eyes that enlarge over time and a smiling mouth shaped by an arc. The example demonstrates SVG rendering and animation in a React framework using D3.js v5. It uses `d3.select` and `d3.arc` to construct the shapes and applies `transition().duration(2000)` to animate the eyes from a radius of 20 to 30 pixels. The face is centered via a translation transform.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes