🌍 Public
Viewing a saved revision (read-only)
a82e5b32deeb46df8797d42b5af33ab5
SVG fundamentals
This example demonstrates how SVG elements can be styled and animated using CSS, with interactive hover effects that change shapes’ fill colors, stroke widths, and sizes. It shows a set of rectangles, circles, and a line rendered within an SVG viewport, where the CSS transitions and hover rules control the visual feedback. The code uses native SVG tags like `<rect>`, `<circle>`, and `<line>`, styled directly with CSS properties such as `fill`, `stroke`, and `transition`. No JavaScript libraries are employed; the behavior relies entirely on HTML, CSS, and the SVG DOM.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.