mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
71 lines
1.1 KiB
HTML
71 lines
1.1 KiB
HTML
<div class="loader">
|
|
<div class="box"></div>
|
|
<div class="circle"></div>
|
|
<div class="triangle"></div>
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
/* From Uiverse.io by edwardytb - Tags: loader */
|
|
.loader {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
}
|
|
|
|
.box {
|
|
width: 50px;
|
|
height: 50px;
|
|
border: 4px solid #3498db;
|
|
animation: box-expand 1s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.circle {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
border: 4px solid transparent;
|
|
border-top-color: #f1c40f;
|
|
animation: circle-rotate 1s linear infinite;
|
|
}
|
|
|
|
.triangle {
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 15px solid transparent;
|
|
border-right: 15px solid transparent;
|
|
border-bottom: 30px solid #e74c3c;
|
|
animation: triangle-expand 1s ease-in-out infinite alternate;
|
|
}
|
|
|
|
@keyframes box-expand {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1.2);
|
|
}
|
|
}
|
|
|
|
@keyframes circle-rotate {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes triangle-expand {
|
|
0% {
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
100% {
|
|
width: 30px;
|
|
height: 60px;
|
|
}
|
|
}
|
|
|
|
</style>
|