Skip to main content
100%

Shapes with SCG and CSS

✓ Published1🌍 Public
SShuyu Zheng
Last edited Jan 11, 2021
Created on Jan 11, 2021
Forked from HTML Starter

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—stylized through both inline attributes and CSS rules. The code uses raw SVG elements within an HTML document, with a `g` element applying transforms for scaling and translation. CSS classes like `lines` and `lines path` control stroke color, width, and line joining for the line and path elements, while inline `fill` and `stroke` attributes override or complement those styles. The visualization shows how SVG presentation attributes interact with CSS specificity and inheritance.

AI-generated description
MIT Licensed

Similar vizzes