SVG Fundementals1
✓ Published0🌍 Public
A single blue rectangle with a thick navy border sits centered on an SVG canvas, demonstrating basic vector graphics styling. The CSS defines a `rect` selector with a blue stroke, navy fill, and 20-pixel stroke width, plus a 3000ms transition on all properties. Hovering the rectangle triggers a CSS `:hover` rule that changes the fill to red and increases the stroke width to 100 pixels, animating the change smoothly. This example shows how pure CSS can drive interactive SVG styling without any JavaScript libraries, using the native SVG `rect` element and CSS transitions.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed