Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
MMo
Last edited Oct 9, 2020
Created on Oct 9, 2020
Forked from HTML Starter

This example displays a set of geometric shapes—a circle, a rectangle, a line, and a path—arranged in a 960 by 500 SVG canvas. The SVG elements are wrapped in groups that use transform attributes for scaling and translation, while CSS classes style the line and path with strokes and rounded joins. Rendered through React, the code uses inline SVG with attributes like `fill` and `stroke-width`, and the stylesheet defines the `.lines` group’s properties.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes