Skip to main content
Public

Share visualization

Loading preview…

make a smile 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

make a smile face

0
Ddaniel
Last edited Sep 17, 2023
Created on Sep 17, 2023

A yellow smiley face is drawn in the center of an SVG canvas using D3 v7. The face includes a circular head, two black eyes, and an arc-based mouth created with the `d3.arc` generator. Two rectangular eyebrows are added, and the right eyebrow animates by repeatedly transitioning its vertical position via `transition.attr` over two-second durations, causing a winking effect while the rest of the face remains static.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed