Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Aantoniojl@gmail.com
Last edited Apr 16, 2022
Created on Apr 16, 2022
Forked from My D3 Tutorial

This example demonstrates a collection of basic SVG shapes—circles, rectangles, lines, and a path—arranged in a grid-like composition with varied fill colors, strokes, and transforms. The rendering uses raw SVG markup inside an HTML page, with CSS classes applied to style group elements, such as setting black stroke and width for line elements. The code relies on standard SVG APIs (circle, rect, line, path) and CSS selectors to control presentation, including a `translate` transform to reposition groups and a `scale` transform on the root group. No external JavaScript libraries or data sources are used, as the shapes are hardcoded in the markup.

AI-generated description
MIT Licensed

Similar vizzes