Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SCG and CSS

Public visualization

Shapes with SCG and CSS

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed