Skip to main content
100%

Fork of its fun when u know how cute done D3.js!

✓ Published1🌍 Public
Ggautam kumar jha
Last edited May 4, 2021
Created on May 4, 2021

This animated SVG smiley face demonstrates fundamental D3.js DOM manipulation by adjusting the position of cartoon eyebrows. A light blue circle forms the face, with two smaller circles for eyes and a path generated using the `arc()` generator as a mouth. The eyebrows, rendered as rectangles, move up and down through two chained `transition()` calls, each lasting two seconds, shifting the group’s `transform` attribute. The example uses d3.select and d3.arc to build static elements and animate them sequentially.

AI-generated description

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

MIT Licensed

Similar vizzes