Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Shapes with SVG and CSS

0 stars1🌍 Public
FFoysal Ahmed Emon
Last edited Feb 8, 2020
Created on Feb 8, 2020
Forked from HTML Starter

This example demonstrates how to create basic SVG shapes—circles, rectangles, lines, and paths—with CSS styling and SVG grouping. It renders a static composition on a 960×500 SVG canvas, using transform attributes to reposition grouped elements and apply fill, stroke, and stroke-width properties. The code uses raw SVG elements within a React project, with a separate CSS file defining global styles and a `.lines` class that overrides stroke properties for line and path elements. The page loads from a minimal HTML file and displays placeholder text via JavaScript.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed