Skip to main content
100%

CBH

✓ Published0🌍 Public
Cchristoshanes
Last edited Mar 30, 2019
Created on Mar 30, 2019

A smiley face drawn with SVG elements animates its eyebrows up and down in a looping transition. The yellow circle face, eyes, rectangular eyebrows, and arc-based mouth are all appended to a central group via D3's selection API. The example uses d3.v5 to demonstrate fundamental DOM manipulation, with `transition().duration(2000)` chaining to move the eyebrow group between two vertical positions. All rendering is performed in SVG with a 960 by 500 viewport, and the animation runs indefinitely without user interaction.

AI-generated description

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

MIT Licensed

Similar vizzes