Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Sscotti15
Last edited Mar 19, 2020
Created on Mar 19, 2020
Forked from HTML Cars Report

This example showcases basic geometric shapes drawn with SVG and styled using CSS, including circles, rectangles, lines, and a path. The shapes demonstrate grouping and transformation via SVG `<g>` elements, with one group applying translation and fill overrides, while another uses CSS classes for stroke styling. The code uses raw SVG markup within JSX, scaled by a transform, and relies on CSS for stroke properties and line joins. No external libraries are used; it is a pure React rendering of SVG primitives.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes