mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
56 lines
914 B
HTML
56 lines
914 B
HTML
<div class="loader"></div>
|
|
<style>
|
|
/* From Uiverse.io by Shoh2008 - Tags: loader */
|
|
.loader {
|
|
width: 16px;
|
|
height: 16px;
|
|
box-shadow: 0 30px, 0 -30px;
|
|
border-radius: 4px;
|
|
background: currentColor;
|
|
display: block;
|
|
position: relative;
|
|
transform: translate(-150%, -20px);
|
|
color: #FFF;
|
|
box-sizing: border-box;
|
|
animation: animloader 2s ease infinite;
|
|
}
|
|
|
|
.loader::after,
|
|
.loader::before {
|
|
content: '';
|
|
box-sizing: border-box;
|
|
width: 16px;
|
|
height: 16px;
|
|
box-shadow: 0 30px, 0 -30px;
|
|
border-radius: 4px;
|
|
background: currentColor;
|
|
color: #FFF;
|
|
position: absolute;
|
|
left: 30px;
|
|
top: 0;
|
|
animation: animloader 2s 0.2s ease infinite;
|
|
}
|
|
|
|
.loader::before {
|
|
animation-delay: 0.4s;
|
|
left: 60px;
|
|
}
|
|
|
|
@keyframes animloader {
|
|
0% {
|
|
top: 0;
|
|
color: white;
|
|
}
|
|
|
|
50% {
|
|
top: 30px;
|
|
color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
100% {
|
|
top: 0;
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
</style>
|