A face with D3.js
A yellow circle with facial features animates as a smiling face using D3.js v7 in React. The code selects an SVG, sets a red background, and builds a face from circles, a path arc for the mouth, and rectangles for eyebrows. Transitions sequence the mouth shrinking and growing, eyebrows lifting, and eye brows thickening, while d3.arc generates the mouth’s arc path. The animation runs on page load with chained transition durations.