Skip to main content
100%

Shapes with SVG and CCS

✓ Published3🌍 Public
Ddata-inside
Last edited Nov 14, 2020
Created on Nov 14, 2020
Forked from React 201

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—styled with CSS. The code uses raw SVG elements within an HTML document, applying inline attributes like `fill` and `stroke` alongside a CSS class (`.lines`) to control appearance. A `<g>` element groups shapes with shared transform and style properties, while the SVG `scale` transform enlarges the entire drawing. No JavaScript libraries are used; rendering relies solely on SVG and CSS.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes