Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Aadbirch
Last edited Jan 19, 2023
Created on Jan 19, 2023
Forked from HTML Cars Report

This example showcases basic SVG shapes—circles, rectangles, lines, and paths—styled with CSS. It demonstrates how SVG elements inherit presentation attributes like fill, stroke, and stroke-width from parent groups, using both inline attributes and CSS class selectors (`.lines`). The code uses raw SVG within an HTML page, with JavaScript and CSS linked externally, to illustrate styling and transformation effects like scaling and translation. The shapes are rendered directly in the browser without any external data.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes