Skip to main content
100%

SVG with CSS

✓ Published0🌍 Public
Ii211367
Last edited Sep 18, 2023
Created on Sep 18, 2023

This example demonstrates basic SVG shapes—circles, rectangles, lines, and a path—arranged in groups and transformed by scaling and translation. It shows how shape styling is applied directly via SVG attributes like `fill` and `stroke`, and how CSS classes from an external stylesheet selectively override properties: the `.lines` class sets stroke color and width, while `.lines path` overrides the stroke with a custom color and rounded joins. The rendering uses native SVG elements within an HTML page.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes