Skip to main content
Public

Share visualization

Loading preview…

Smiley part2, Migusti

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Smiley part2, Migusti

0
RRemustus
Last edited Sep 1, 2021
Created on Sep 1, 2021

A yellow smiley face with black eyes and a curved mouth is centered on an SVG canvas. Its two rectangular eyebrows animate, moving upward and then returning to their original position in a repeating two-second cycle. Built with D3.js v5, the example uses DOM selection and appending to construct each shape, while chained `transition().duration()` calls on the eyebrow group create the motion. The mouth is drawn using D3's arc generator with specified inner and outer radii and angular range.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed