Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Shapes with SVG and CSS

0 stars0🌍 Public
CChia-KaiYang
Last edited Feb 27, 2019
Created on Feb 27, 2019

A yellow circle with two small eyes and rectangular eyebrows forms a face. The animation moves the eyebrows upward for two seconds, then returns them to their original position. The SVG is drawn using d3.select and shape-construction methods like append('circle') and append('rect'), with layout based on width and height attributes. The eyebrow motion relies on d3's transition system, using transition().duration() to animate the transform attribute in a two-step sequence. The mouth is a path generated with d3.arc, specifying inner and outer radii with defined angles.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed