Skip to main content
100%

Shapes with SVG and CSS

✓ Published2🌍 Public
SSanyog Yadav
Last edited Nov 24, 2019
Created on Nov 24, 2019
Forked from Hello VizHub

This example demonstrates basic SVG shape rendering with CSS styling, showing circles, rectangles, lines, and a path organized in groups with transforms. The code uses raw SVG elements with attributes like `cx`, `cy`, `r`, `x`, `y`, `width`, and `height`, alongside CSS classes that apply stroke and fill colors. A `scale(1.5)` transform enlarges the entire group, while a translated group applies consistent `fill` and `stroke` properties. The `.lines` class and its nested `path` rule define stroke styling, including a custom color and rounded line joins, with no external JavaScript libraries involved.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes