Skip to main content
100%

Shapes with SVG and CSS

✓ Published2🌍 Public
Sshungshung
Last edited Feb 9, 2020
Created on Feb 9, 2020
Forked from Untitled

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—styling them with both inline attributes and a CSS stylesheet. The shapes appear in two groups, with the lower set offset vertically to show filled versus stroked variants, while a separate group uses a CSS class to control stroke color and line joins. The page renders static SVG elements in a React-less HTML file, using plain SVG markup with transformations like `scale` and `translate` to position and duplicate shapes. No interaction or data binding occurs; the visualization purely illustrates SVG drawing primitives and CSS styling.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes