🌍 Public
Viewing a saved revision (read-only)
3705c76dc8a345cbbcdec75528c03485
Shapes with SVG and CSS
This example demonstrates how SVG shapes such as circles, rectangles, lines, and paths can be styled and transformed using SVG attributes and CSS. It shows the interaction between inline presentation attributes like `fill` and `stroke`, CSS classes, and nested `<g>` elements for grouping. The code uses the React framework to render a static SVG with a scale transform and a translate transform. CSS rules in the stylesheet apply stroke and fill styles to line and path elements, illustrating the layering of SVG styling methods.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.