Skip to main content
100%

Fork of D3 Face2

✓ Published2🌍 Public
YYoung Song
Last edited Jun 23, 2022
Created on Jun 16, 2022
Forked from D3 Face

A smiling cartoon face, drawn with yellow circles and black features on an orange background, animates its eyebrows upward and back down. The face is built using SVG elements positioned with a D3 selection, including circles for the eyes, rectangles for the eyebrows and nose, and a path generated with the `d3.arc()` function for the mouth. Animated via chained `transition()` calls that set the eyebrow group’s `transform`, the example demonstrates declarative attribute updates over a two-second rise and three-second fall.

AI-generated description
  • Loading d3.js
  • Importing d3 function using ES6
  • Creating a face using SVG and d3
  • Animation with transitions
MIT Licensed

Similar vizzes