Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
Ssourcebox-bug
Last edited Apr 11, 2019
Created on Apr 11, 2019

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—styled through CSS. It uses raw SVG markup within an HTML page, applying inline attributes for fill, stroke, and transforms, while a linked stylesheet (`styles.css`) defines classes for line width, color, and path join styles. The scene groups elements to show how attributes and CSS rules combine, with a global scale transform enlarging the entire composition.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes