Skip to main content
100%

Shapes with SVG & CSS

✓ Published1🌍 Public
WWin
Last edited Jun 9, 2020
Created on Jun 9, 2020
Forked from HTML Starter

This example demonstrates how to create and style basic geometric shapes using SVG elements within a React-based visualization. It shows circles, rectangles, lines, and paths arranged in groups, with CSS classes controlling stroke properties and colors. The code uses raw SVG tags like `<circle>`, `<rect>`, `<line>`, and `<path>`, along with transform attributes for scaling and translation. A linked stylesheet applies visual styling, including stroke width, line joins, and fill colors, while the SVG viewport is set to 960 by 500 pixels.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes