mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
60 lines
1.2 KiB
HTML
60 lines
1.2 KiB
HTML
<div class="loader">Loading...</div>
|
|
<style>
|
|
/* From Uiverse.io by Flowelife - Tags: loader, connect, loop */
|
|
@keyframes load-loop {
|
|
0% {
|
|
background-position: 100%;
|
|
}
|
|
|
|
40% {
|
|
background-position: 50%;
|
|
}
|
|
|
|
50% {
|
|
background-position: 50%;
|
|
}
|
|
|
|
90% {
|
|
background-position: 0%;
|
|
}
|
|
|
|
100% {
|
|
background-position: 0%;
|
|
}
|
|
}
|
|
|
|
.loader {
|
|
position: relative;
|
|
font-family: sans-serif;
|
|
display: flex;
|
|
height: auto;
|
|
width: auto;
|
|
letter-spacing: 3px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px 12px;
|
|
font-size: 1.45em;
|
|
color: transparent;
|
|
background: linear-gradient(to right,#fff 33.3%,#008cdd 33.3%, #008cdd 66.6%, #fff 66.6%) no-repeat;
|
|
background-size: 300%;
|
|
background-position: 100%;
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
animation: infinite 1.4s load-loop ease;
|
|
}
|
|
|
|
.loader::after {
|
|
content: '';
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
display: block;
|
|
background: linear-gradient(to right,#008cdd 33.3%, transparent 33.3% , transparent 66.6%, #008cdd 66.6%) no-repeat;
|
|
background-size: 300%;
|
|
background-position: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
animation: infinite 1.4s load-loop ease;
|
|
}
|
|
</style>
|