Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes and Colors with SVG and CSS

Public visualization

Shapes and Colors with SVG and CSS

0 stars0🌍 Public
JJepyagg
Last edited Sep 17, 2020
Created on Sep 17, 2020

This example demonstrates a range of SVG shape elements—circles, rectangles, lines, and paths—styled through both inline attributes and external CSS. It shows how fill colors, stroke widths, and stroke styles can be applied directly on elements or inherited from parent `<g>` groups. The code uses plain SVG markup with CSS selectors like `.lines` and `.lines path` to set stroke properties, and employs transforms for scaling and translation. No JavaScript libraries are used; rendering relies entirely on native SVG and CSS.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed