Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Sshiy7
Last edited Sep 14, 2019
Created on Sep 14, 2019

This example demonstrates the creation of a simple, animated face using D3.js, showing how to build and manipulate SVG shapes. The code renders a yellow circle for the face, with eyes, eyebrows, and a mouth composed of SVG primitives. The eyebrows are animated using chained `transition` calls, moving them up and down over a 2000-millisecond duration. The example relies on D3's selection and DOM manipulation methods, such as `select` and `append`, to construct the scene and animate the elements.

AI-generated description

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

MIT Licensed

Similar vizzes