Skip to main content
100%

Fork of Let's make a devil face with D3.js!

✓ Published0🌍 Public
Kkartheekgurijala1996@gmail.com
Last edited Feb 28, 2024
Created on Feb 27, 2024

A devil face built with D3.js v5 demonstrates DOM manipulation through SVG shapes and transitions. The code uses `d3.select`, `d3.append`, and `d3.arc` to construct circles, rectangles, paths, and triangles for the face, ears, horns, cheeks, nose, earrings, and hair. Eyebrows animate via chained `transition` calls with `attr` updates, moving up and down over two-second intervals. The scene renders against a light blue ocean background, with all elements positioned using SVG coordinate transformations relative to the center.

AI-generated description

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

MIT Licensed

Similar vizzes