uikit
Version:
UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.
79 lines (69 loc) • 2.98 kB
HTML
<html lang="en-gb" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SVG - UIkit tests</title>
<script src="js/test.js"></script>
</head>
<body>
<div class="uk-container">
<h1>SVG</h1>
<div class="uk-child-width-auto" uk-grid>
<div>
<p>Image</p>
<img id="svg1" class="svg-1" src="../src/images/components/navbar-toggle-icon.svg" alt="" uk-svg>
</div>
<div>
<p>Width</p>
<img id="svg2" class="svg-2" src="../src/images/components/navbar-toggle-icon.svg" width="40" height="40" alt="" uk-svg>
</div>
<div>
<p>Symbol + ID</p>
<img src="images/icons.svg#table" width="20" height="20" alt="" uk-svg>
<img src="images/icons.svg#trash" width="20" height="20" alt="" uk-svg>
</div>
<div>
<p>Symbol + ID + Fallback</p>
<img src="../src/images/backgrounds/accordion-close.svg#notfound" width="20" height="20" alt="" uk-svg>
<img src="../src/images/backgrounds/accordion-open.svg#notfound" width="20" height="20" alt="" uk-svg>
</div>
<div>
<p>Stroke Animation</p>
<img class="uk-animation-stroke" width="40" height="40" src="images/icons.svg#cloud-upload" uk-svg="stroke-animation: true" alt="">
</div>
</div>
<h2>JavaScript Options</h2>
<table class="uk-table uk-table-striped">
<thead>
<tr>
<th>Option</th>
<th>Value</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>src</code></td>
<td>String</td>
<td></td>
<td>The SVG source url. If a location hash is present, only the <symbol< of the SVG with the given ID is shown.</td>
</tr>
<tr>
<td><code>ratio</code></td>
<td>Number</td>
<td>1</td>
<td>The SVG size ratio.</td>
</tr>
<tr>
<td><code>stroke-animation</code></td>
<td>Boolean</td>
<td>false</td>
<td>Animate all elements with the `stroke` attribute in the SVG.</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>