Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Wwindsoftheo
Last edited Dec 28, 2020
Created on Dec 18, 2020

This example builds a cartoon face from scratch in an SVG canvas, with a yellow circular head, framed by black outlines, two eyes, and an open arc-shaped mouth. The face is centered via a translated group element, and its features are composed of basic geometric shapes: circles for the eyes, rectangles for the eyebrows, and a path generated with the `arc` function for the mouth. The visualization is animated using D3 transitions—the right eye shrinks and regrows over a two-second duration, while the entire eyebrow group shifts vertically and returns, creating a subtle winking and raising expression.

AI-generated description
MIT Licensed

Similar vizzes