@lordicon/element
Version:
This package offers developers a convenient method for embedding, controlling, and customizing animated icons from Lordicon within web projects.
37 lines (31 loc) • 556 B
CSS
body {
padding: 0;
}
div {
height: 100vh;
box-sizing: border-box;
padding: 20px;
}
div:nth-child(1) {
background-color: var(--palette-bg-1);
}
div:nth-child(2) {
background-color: var(--palette-bg-2);
}
div:nth-child(3) {
background-color: var(--palette-bg-3);
}
lord-icon {
display: block;
width: min(50vh, 100%);
height: auto;
max-width: 100%;
aspect-ratio: 1;
transition: all 0.5s ease-in-out;
transform: scale(0.8);
opacity: 0;
}
lord-icon.ready {
transform: none;
opacity: 1;
}