Skip to main content
100%

SVG trial

✓ Published0🌍 Public
AAlan Beveridge
Last edited Apr 30, 2023
Created on Apr 30, 2023
Forked from HTML Starter

This example demonstrates a static SVG composition featuring interactive hover effects on geometric shapes. A yellow circle with a red stroke, two blue and red rectangles, a green diagonal line, and a black path are drawn directly on a 1000x1000 canvas. The plain HTML page uses embedded CSS to change fill and stroke colors on hover—circles and rectangles turn black, while the line becomes red. The code relies on standard SVG elements (`circle`, `rect`, `line`, `path`) and CSS pseudo-classes, with no JavaScript or external libraries.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes