mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
62 lines
1 KiB
HTML
62 lines
1 KiB
HTML
<div class="loader"></div>
|
|
<style>
|
|
/* From Uiverse.io by Shoh2008 - Tags: loader */
|
|
.loader {
|
|
width: 48px;
|
|
height: 48px;
|
|
display: block;
|
|
margin: 20px auto;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
}
|
|
|
|
.loader::after {
|
|
content: '';
|
|
width: 48px;
|
|
height: 48px;
|
|
left: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
border-radius: 50% 50% 0;
|
|
border: 15px solid red;
|
|
transform: rotate(45deg) translate(0, 0);
|
|
box-sizing: border-box;
|
|
animation: animMarker 0.4s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.loader::before {
|
|
content: '';
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
top: 150%;
|
|
width: 24px;
|
|
height: 4px;
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
animation: animShadow 0.4s ease-in-out infinite alternate;
|
|
}
|
|
|
|
@keyframes animMarker {
|
|
0% {
|
|
transform: rotate(45deg) translate(5px, 5px);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(45deg) translate(-5px, -5px);
|
|
}
|
|
}
|
|
|
|
@keyframes animShadow {
|
|
0% {
|
|
transform: scale(0.5);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
</style>
|