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
Aaurelio-david
Last edited Jun 20, 2020
Created on Jun 20, 2020
Forked from React Starter

This example uses raw SVG markup inside an HTML file to draw a collection of circles, rectangles, lines, and a path, positioned on a 960-by-500 canvas and scaled by a factor of 0.7. The SVG shapes are styled with both presentation attributes, such as `fill` and `stroke`, and an external CSS stylesheet. The CSS file defines a `.lines` class that applies a black stroke and width of 10 to the line and path elements, while the path's fill, stroke color, and stroke-linejoin are overridden by more specific CSS rules. No external JavaScript or React logic alters the shapes, as the behavior is purely declarative.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed