Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
Jjunge870214
Last edited Jan 21, 2019
Created on Jan 21, 2019

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—styled and transformed using CSS and inline SVG attributes. It shows how fill colors, stroke widths, line joins, and group-level transformations like scaling and translation affect the rendering. The code uses native SVG elements (`<circle>`, `<rect>`, `<line>`, `<path>`) within an HTML document, with CSS rules from `styles.css` targeting the `.lines` class for stroke styling. The visualization is purely declarative, with no JavaScript or external libraries beyond the SVG markup itself.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes