Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Let's make a face with D3.js!

0 stars2🌍 Public
MMelina
Last edited Jun 11, 2020
Created on Jun 11, 2020

A D3.js animation draws a yellow smiley face with eyes, a mouth, and eyebrows that move. The SVG is centered, and the code uses D3's `select` and `append` to build shapes, `arc` for the mouth path, and `transition().duration(2000)` twice to animate the eyebrow group up and down in a repeating sequence. The face is static except for the eyebrows, which shift vertically.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

Comments

Sign in to join the discussion.

MIT Licensed