Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 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
MIT Licensed

Similar vizzes