Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Mmegbridge
Last edited May 4, 2020
Created on May 4, 2020
Forked from HTML Starter

This example demonstrates how SVG shapes—circles, rectangles, lines, and paths—can be styled directly with CSS classes and inline attributes. It shows basic geometry positioning within a 960x500 viewport, using a scaled group transform, and highlights how fills, strokes, and stroke-widths vary across elements. The visualization relies purely on React-rendered SVG markup and a linked stylesheet, with no JavaScript libraries or data binding involved. Each shape’s appearance is controlled through either explicit SVG attributes or CSS selectors targeting groups and path elements.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes