Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley face

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

Fork of Smiley face

0
AArun
Last edited Mar 27, 2024
Created on Mar 27, 2024
Forked from Smiley face

A yellow smiley face is drawn on an SVG canvas, centered and sized to the viewport. The graphic shows a static face with two black eyes, eyebrows, and a curved mouth, while the eyes transition from their initial state to black over three seconds after a one-second delay. The code uses D3 v6 selections and transitions, including `transition.delay()` and `transition.duration()`, to animate the eye fill colors. The face is constructed with SVG circle, rect, and path elements, using `d3.arc()` for the mouth’s curved shape, all within a centered group.

AI-generated description

The graphic of "Smiley face"

Comments

Sign in to join the discussion.

MIT Licensed