feat: add description text
This commit is contained in:
parent
0d75370a9f
commit
ac6100773e
@ -7,7 +7,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<main>
|
||||
<div class="sale">
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
@ -927,6 +927,9 @@
|
||||
d="m 343.78989,321.72092 v 7.1022 h 37.74142 v -7.1022"
|
||||
id="path27464" /></g></svg>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<p>If you include the SVG inline, you can access it's elements using regular
|
||||
CSS styling techniques. This animation is purely done with CSS. No Javascript.</p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
@ -7,7 +7,8 @@
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<main>
|
||||
<p>regular box with <code>border: 1px solid black;</code></p>
|
||||
<div class="box">
|
||||
<div class="icon">
|
||||
<img src="sale.svg" width="100" height="80" />
|
||||
@ -21,6 +22,8 @@
|
||||
dolore magna aliquyam erat, sed diam voluptua.
|
||||
</div>
|
||||
</div>
|
||||
<p>same box but styled with <code>boder-image</code>. Of course, you can use PNG or even JPEG
|
||||
to achieve the same but SVG keep their high quality, no matter how small or large the box is.</p>
|
||||
<div class="box box--wobbly-border">
|
||||
<div class="icon">
|
||||
<img src="sale.svg" width="100" height="80" />
|
||||
@ -34,7 +37,9 @@
|
||||
dolore magna aliquyam erat, sed diam voluptua.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>for reference, here's the original SVG used for styling:</p>
|
||||
<img src="box.svg" />
|
||||
</header>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
@ -8,14 +8,17 @@
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<p>Include as <img></p>
|
||||
<div class="girlande">
|
||||
<img src="girlande-600x100.svg" width="600" height="100" />
|
||||
</div>
|
||||
|
||||
<p>Include as <object></p>
|
||||
<div class="girlande">
|
||||
<object type="image/svg+xml" data="girlande-600x100.svg"></object>
|
||||
</div>
|
||||
|
||||
<p>Include as inline</p>
|
||||
<div class="girlande">
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
|
@ -11,6 +11,9 @@
|
||||
<div class="girlande girlande--600x100"></div>
|
||||
<div class="spacer"></div>
|
||||
<div class="girlande girlande--300x50"></div>
|
||||
<p>SVG as background image with background-repeat.</p>
|
||||
<p>Of course, you can do the same with PNG, JPEGs but with SVG it's
|
||||
way easier to create images that fit when repeated.</p>
|
||||
</header>
|
||||
</body>
|
||||
</html>
|
@ -9,6 +9,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<div class="sale">
|
||||
<p>same SVG file (67kB), zoomed to different sizes without loss of quality.</p>
|
||||
<img src="sale.svg" width="50" height="40" />
|
||||
<img src="sale.svg" width="125" height="100" />
|
||||
<img src="sale.svg" width="250" height="200" />
|
||||
|
Loading…
Reference in New Issue
Block a user