Skip to main content
100%

SVG training

✓ Published0🌍 Public
KkazGuido
Last edited Oct 13, 2022
Created on Oct 13, 2022
Forked from HTML Starter

This example demonstrates basic SVG interactivity and styling through pure HTML, CSS, and JavaScript without any external libraries. It shows three black rectangles on an 800x600 canvas, where hovering over a rectangle triggers a CSS transition that gradually changes its fill color to green and expands its dimensions and position over three seconds. The code utilizes CSS pseudo-class `:hover` and the `transition` property, while the first rectangle is wrapped in an anchor tag linking to google.com. The rendering relies entirely on native SVG elements within the HTML document.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes