Skip to main content
100%

Fork of SVG fundamentals E2

✓ Published0🌍 Public
Ppanthabuddhi@gmail.com
Last edited Feb 8, 2024
Created on Jan 29, 2024

This example demonstrates a simple interactive SVG graphic: a single red rectangle with a thick black border that transitions smoothly to a green fill and an even thicker border when hovered. It uses CSS transitions applied directly to SVG `rect` elements, triggered by the `:hover` pseudo-class. The rendering is static SVG within an HTML document, with the transition duration set to 2000 milliseconds. The code relies on native browser CSS support rather than JavaScript libraries, showcasing how SVG styling and animation can be handled purely through stylesheet rules.

AI-generated description
MIT Licensed

Similar vizzes