Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Shapes and Colors with SVG and CSS

Public visualization

Fork of Shapes and Colors with SVG and CSS

0 stars0🌍 Public
HHojjat Karami
Last edited Mar 24, 2023
Created on Mar 24, 2023

This example demonstrates a collection of SVG shapes—circles, rectangles, lines, and a path—arranged and styled with CSS. The visualization shows how basic geometric primitives can be grouped, transformed, and colored, with some shapes inheriting fill and stroke properties from parent `<g>` elements while others are set directly. The code uses raw SVG attributes like `translate` and `scale` for positioning, and CSS classes (`.lines`) to apply stroke styling to line and path elements. It renders entirely in SVG with no external data or JavaScript libraries.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed