Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG

Public visualization

Shapes with SVG

0 stars1🌍 Public
Uujjwalgarad
Last edited Dec 4, 2020
Created on Dec 3, 2020
Forked from Shapes with SVG

A smiling face is rendered as a composition of SVG shapes, including a yellow circle for the head, two eyes, eyebrows, and an overlaid arc path for the mouth. The code uses d3.select and d3.arc to position these elements around a central group, translating coordinates dynamically based on the SVG’s width and height. One eyebrow animates downward via a transition on its y-attribute over two seconds, while the other remains fixed.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed