Skip to main content
100%

SVG Fundamental

✓ Published0🌍 Public
Hhuy1651995
Last edited Nov 3, 2022
Created on Nov 3, 2022
Forked from HTML Starter

This example demonstrates fundamental SVG shapes and interactive CSS styling. It displays a red rectangle, a green-bordered circle, and a thick black line on an 800 by 800 canvas. The rectangle uses a CSS transition on all properties, causing its fill and stroke-width to animate over three seconds when hovered, turning green and widening its border. The code directly uses SVG elements (`rect`, `circle`, `line`) and CSS selectors, including a `rect:hover` pseudo-class and the `transition` property.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes