Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
KKris
Last edited Nov 15, 2022
Created on Nov 14, 2022
Forked from HTML Starter

This example demonstrates fundamental SVG shape animation and interactivity. It displays a single black rectangle with rounded corners that continuously morphs its corner radius and horizontal position over a six-second loop while an inline CSS rule changes the shape’s fill to red on hover. The rendering relies entirely on raw SVG elements—`<rect>` and `<animate>`—inside an HTML page, with CSS transitions applied to the `circle` selector (which does not affect the rectangle) and the `:hover` pseudo-class for the fill change. No external libraries or data sources are used.

AI-generated description

Building Shapes with SVG in VizHub

MIT Licensed

Similar vizzes