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
Jjkmingwen
Last edited Mar 2, 2021
Created on Mar 2, 2021
Forked from HTML Cars Report

This example demonstrates a collection of SVG shapes—circles, rectangles, lines, and a path—styled and positioned using CSS and SVG attributes. It shows how presentation properties like fill, stroke, stroke-width, and transforms (scale, translate) can be applied either through inline attributes or CSS classes, with the `.lines` class controlling the polyline’s appearance. The code uses plain HTML and CSS, with no JavaScript libraries, and renders within an SVG element on a fixed 960×500 canvas.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed