SVG Basics Experiment
✓ Published0🌍 Public
This example demonstrates a cartoon smiley face drawn with SVG primitive shapes, including a head outline, eyes, nose, and mouth, set against a gradient-filled background. The animation shows the mouth expanding and contracting through elliptical size changes. The page uses raw SVG elements—`rect`, `path`, `ellipse`, `circle`, and `animate`—within an HTML document, with no JavaScript libraries. The gradient is defined in `<defs>` and applied via the `fill` attribute, while the mouth’s motion is driven by repeated `<animate>` tags on its radius properties.
AI-generated descriptionThis is a page trying out the various svg elements based on the first episode of the D3 course Get it right in Black & White.
MIT Licensed