Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes and Colors with SVG and CSS

Public visualization

Shapes and Colors with SVG and CSS

0 stars0🌍 Public
Vvkoschman
Last edited Jul 29, 2020
Created on Jul 29, 2020

A smiling face rendered in SVG uses D3 v5 to construct circles, rectangles, and an arc-based mouth. Static yellow and black shapes form the head and eyes, while CSS transitions animate the eyebrows upward and downward over two-second intervals. The code directly manipulates SVG attributes such as `cx`, `r`, and `d` with an `arc` generator, and uses `transition.attr` to shift eyebrow positions.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed