Skip to main content
100%

Shapes with SVG and CSS

✓ Published2🌍 Public
Ddamankwah
Last edited Apr 6, 2020
Created on Apr 6, 2020
Forked from HTML Names Report

This example demonstrates how to combine SVG shapes with CSS styling rules. It shows circles, rectangles, lines, and a path, organized into groups that inherit fill and stroke properties. The code uses plain SVG elements such as `<circle>`, `<rect>`, `<line>`, and `<path>`, along with CSS classes like `.lines` to define stroke styles, and inline `transform` attributes for scaling and translation.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes