Skip to main content
Public

Share visualization

Loading preview…

Pink 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

Pink Face

1
AAsrar Al Qassem
Last edited Mar 6, 2024
Created on Feb 24, 2024

A pink smiley face rendered in SVG animates its blinking eyes, shifting eyebrows, and a mouth that opens and closes. Built with D3.js v5, the example demonstrates core DOM manipulation through selections, shapes, and chained transitions. It uses `transition.attr` and `transition.attrTween` with the `arc` and `interpolate` helpers to animate the mouth’s angles and eyebrow position, while a recursive `blink` function cycles eye radii via timed transitions.

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