@lordicon/element
Version:
This package offers developers a convenient method for embedding, controlling, and customizing animated icons from Lordicon within web projects.
24 lines (20 loc) • 697 B
HTML
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Custom trigger (states)</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="/main.css" />
<script type="module" src="/18-custom-trigger-states.ts"></script>
</head>
<body>
<lord-icon class="clickable" trigger="trash" src="/icons/trash.json"></lord-icon>
<p>
Interact with trash directly by mouse enter and click. You can also force
state:
<a href="#" id="trash-intro">intro</a>,
<a href="#" id="trash-fill">fill</a>,
<a href="#" id="trash-erase">erase</a>.
</p>
</body>
</html>