Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
NNohaS
Last edited Aug 31, 2023
Created on Aug 31, 2023
Forked from HTML Cars Report

This example shows a collection of basic SVG shapes—circles, rectangles, a line, and a path—arranged on a 960×860 canvas using static markup in an HTML page. It demonstrates how CSS affects styling, as seen with a `fill` attribute and stroke properties applied directly to elements and groups, while an empty `.highlited` class hint at potential styling hooks. Rendering uses raw SVG within the DOM, with `transform` on a `<g>` element to offset shapes. The code relies on native HTML, CSS, and SVG APIs without external libraries like D3 or React, despite the README referencing a React starter.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes