Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
JJuan Ore
Last edited May 18, 2020
Created on May 18, 2020
Forked from HTML New Cars

This example demonstrates how to position and style basic SVG shapes—circles and rectangles—using both inline SVG attributes and external CSS. The visualization shows a static composition of shapes on a 960 by 500 canvas, including one shape group translated via the SVG `transform` attribute. Rendered through React within the VizHub environment (source v3), the code uses raw SVG elements like `<circle>`, `<rect>`, and `<g>`, with styling applied via the `styles.css` file. The page itself is a minimal HTML document linking to the stylesheet, highlighting the interplay between SVG presentation attributes and CSS rules.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes