Skip to main content
100%

Fork of Shapes and Colors with SVG and CSS

✓ Published0🌍 Public
Ttechnicalgamer243@gmail.com
Last edited Apr 2, 2024
Created on Apr 2, 2024

This example demonstrates basic SVG shapes and CSS styling, showing circles and rectangles in different configurations across a canvas. The first row uses default black fills, while the second row applies individual fill colors (pink and a green hex value) directly to elements. A third group applies presentation attributes like `fill` and `stroke` to multiple shapes at once, and a final group with a class selector (`.lines`) styles lines and paths with stroke properties. The code uses raw SVG elements (`circle`, `rect`, `line`, `path`) with transforms for scaling and translation, styled via an external CSS stylesheet (`styles.css`).

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes