Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Viewing a saved revision (read-only)

c32dffd6d614454c99224331bc0accf2

Shapes with SVG and CSS

0 stars5🌍 Public
EEdoardoRegini
Last edited Mar 25, 2020
Created on Mar 23, 2020
Forked from HTML Car Report

This example demonstrates how SVG shapes can be styled and transformed using raw SVG attributes and CSS rules. It shows circles, rectangles, lines, and a path, with some shapes inheriting fill and stroke properties from parent groups, while others are explicitly overridden. The code uses inline SVG elements such as `circle`, `rect`, `line`, and `path`, along with CSS classes like `.lines` to define stroke styles. SVG transform attributes (`scale`, `translate`) group and position the shapes, and no external JavaScript libraries are used.

AI-generated description