Skip to main content
100%

Shape with SVG and CSS

✓ Published1🌍 Public
Cczhang746
Last edited Feb 17, 2023
Created on Feb 17, 2023
Forked from HTML Cars Report

This example demonstrates how geometric shapes can be composed and styled using SVG and CSS. It shows circles, rectangles, lines, and a path, with attributes like fill color, stroke, and stroke-width applied both inline and through CSS classes. The SVG is scaled and translated using transform groups, while CSS rules set stroke properties for the line and path elements. The code uses standard SVG elements (`circle`, `rect`, `line`, `path`) with inline styles and an external stylesheet (`styles.css`) that defines classes like `.lines` and `.lines path`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes