@lordicon/element
Version:
This package offers developers a convenient method for embedding, controlling, and customizing animated icons from Lordicon within web projects.
58 lines (55 loc) • 1.73 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8" />
<title>State</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="/main.css" />
<script type="module" src="/10-state.ts"></script>
</head>
<body>
<table>
<thead>
<tr>
<th>Attribute</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>state: in-reveal</td>
<td>
<lord-icon trigger="loop" state="in-reveal" src="/icons/coins.json"></lord-icon>
</td>
</tr>
<tr>
<td>state: hover-jump</td>
<td>
<lord-icon trigger="loop" state="hover-jump" src="/icons/coins.json"></lord-icon>
</td>
</tr>
<tr>
<td>state: hover-spending</td>
<td>
<lord-icon trigger="loop" state="hover-spending" src="/icons/coins.json"></lord-icon>
</td>
</tr>
<tr>
<td>state: loop-spin</td>
<td>
<lord-icon trigger="loop" state="loop-spin" src="/icons/coins.json"></lord-icon>
</td>
</tr>
<tr>
<td>
state: handle with custom code (from in-reveal to hover-jump /
loop-spin)
</td>
<td>
<lord-icon id="main-icon" src="/icons/coins.json"></lord-icon>
</td>
</tr>
</tbody>
</table>
</body>
</html>