Skip to main content
100%

Make a face with D3.js!

✓ Published0🌍 Public
TTrustPaul
Last edited Nov 24, 2020
Created on Nov 24, 2020

This example shows a stylized yellow face built with SVG elements, including eyes, eyebrows, and a smile, which animate by moving the eyebrows up and down. The face is constructed using D3.js v6 selections to append circles, rectangles, and an arc-generated path for the mouth. The code uses `d3.select`, `d3.arc`, and `.transition().duration()` to create the two-second eyebrow movement loop. A separate text input and button trigger a JavaScript alert, though the face animation runs independently of that interaction.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes