Skip to main content
100%

Shapes with SVG AND CSS

✓ Published1🌍 Public
OOvxOO
Last edited Jul 16, 2019
Created on Jul 16, 2019
Forked from Hello VizHub

This example demonstrates basic SVG shape rendering and styling using raw SVG elements alongside CSS rules. It displays circles, rectangles, lines, and a path, with some shapes using default black fills while others specify explicit fill colors like red and green. A grouped set of shapes applies a light blue fill and black stroke through an attribute, while a separate group with the class `lines` uses CSS to define stroke properties, with its path element overridden to use a red stroke and rounded line joins. The SVG is scaled using a transform, and the page layout removes margins and hides overflow.

AI-generated description
MIT Licensed

Similar vizzes