Skip to main content
100%

SVG Basics Experiment

✓ Published0🌍 Public
YYiorgos Bagakis
Last edited Oct 15, 2022
Created on Oct 15, 2022
Forked from HTML Starter

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 description

This 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

Similar vizzes