@lordicon/element
Version:
This package offers developers a convenient method for embedding, controlling, and customizing animated icons from Lordicon within web projects.
39 lines (36 loc) • 1.09 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Custom trigger</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="/main.css" />
<script type="module" src="/15-custom-trigger.ts"></script>
</head>
<body>
<table>
<thead>
<tr>
<th>Info</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>click icon twice</td>
<td>
<lord-icon class="clickable" trigger="custom" state="morph-unlocked"
src="/icons/lock.json"></lord-icon>
</td>
</tr>
<tr>
<td>click icon twice (initial reverse)</td>
<td>
<lord-icon reverse class="clickable" trigger="custom" state="morph-unlocked"
src="/icons/lock.json"></lord-icon>
</td>
</tr>
</tbody>
</table>
</body>
</html>