Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
PPinkBone
Last edited Feb 19, 2023
Created on Feb 16, 2023
Forked from HTML Starter

This example demonstrates fundamental SVG shapes and styling within a bare HTML page, using CSS for interactivity and transitions. It draws circles, rectangles, lines, and paths onto a 900x900 SVG canvas, with a hover effect on the rectangle that changes its fill, stroke color, and stroke width over three seconds. The code leverages native SVG elements and CSS selectors, such as `rect:hover` and the `transition` property, to illustrate basic vector graphics rendering and styling. No external libraries are used; only vanilla HTML, CSS, and SVG.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes