🌍 Public
Viewing a saved revision (read-only)
1f3bb63629b3448b863c3ed64693f832
Shapes with SVG and CSS
This example demonstrates how SVG shapes—circles, rectangles, lines, and paths—can be styled and transformed using inline attributes and CSS classes. It shows shapes painted with default colors, explicit fills like red and green, and a group inheriting shared fill and stroke properties. A CSS class applies thick black strokes to lines and a purple stroke with rounded joins to paths. The code uses plain SVG elements with `transform` for scaling and translation, plus CSS from `styles.css` for styling.
AI-generated descriptionReact Starter code.