Skip to main content
Public

Share visualization

Loading preview…

Shapes with SVG and CSS

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Shapes with SVG and CSS

1
SShokoLocoMocco
Last edited Nov 16, 2020
Created on Nov 15, 2020
Forked from HTML Cars Report

This example demonstrates basic geometric shapes—circles, rectangles, lines, and a path—rendered as SVG elements and styled with CSS rules. It shows how SVG markup can be combined with CSS classes, such as `.lines`, to apply stroke properties like color and width, while inline attributes control fill and transform behaviors, including scaling and translation. The code uses raw HTML, CSS, and JavaScript within a React starter template, with no external visualization libraries.

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