Skip to main content
100%

Shapes with SVG and CSS

✓ Published2🌍 Public
Wwoo
Last edited Oct 2, 2020
Created on Oct 2, 2020

This example demonstrates how SVG shapes can be styled and transformed using both inline attributes and CSS. It shows circles, rectangles, lines, and a path, with some shapes grouped to share fill and stroke properties, while the `lines` class applies black strokes and a rounded line join. The SVG viewport scales up by 1.5, and a translated group shifts lines and paths into place. The code uses raw SVG elements and CSS rules, with no external JavaScript libraries.

AI-generated description
MIT Licensed

Similar vizzes