Homepage-imsyy/public/loading/loading.css

142 lines
2.4 KiB
CSS
Raw Normal View History

2022-11-15 14:19:29 +00:00
* {
2023-07-03 09:51:58 +00:00
margin: 0;
padding: 0;
2022-11-15 14:19:29 +00:00
}
2021-09-25 14:57:18 +00:00
#loading-box .loading-left-bg,
#loading-box .loading-right-bg {
2023-07-03 09:51:58 +00:00
position: fixed;
z-index: 999;
width: 50%;
height: 100%;
background-color: #515151e0;
transition: all 0.75s cubic-bezier(0.42, 0, 0, 1.01);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
2021-09-25 14:57:18 +00:00
}
#loading-box .loading-right-bg {
2023-07-03 09:51:58 +00:00
right: 0;
2021-09-25 14:57:18 +00:00
}
2023-07-03 09:51:58 +00:00
#loading-box > .spinner-box {
position: fixed;
z-index: 999999;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
2021-09-25 14:57:18 +00:00
}
#loading-box .spinner-box .loading-word {
2023-07-03 09:51:58 +00:00
position: absolute;
color: #ffffff;
font-size: 0.95rem;
transform: translateY(64px);
text-align: center;
2021-09-25 14:57:18 +00:00
}
2022-11-15 14:19:29 +00:00
.loading-title {
2023-07-03 09:51:58 +00:00
font-size: 1.25rem;
margin: 20px 10px 4px 10px;
2021-09-25 14:57:18 +00:00
}
#loading-box .spinner-box .configure-core {
2023-07-03 09:51:58 +00:00
width: 100%;
height: 100%;
background-color: #37474f;
2021-09-25 14:57:18 +00:00
}
2022-11-15 14:19:29 +00:00
/* 加载完成 */
.loaded .loading-left-bg {
2023-07-03 09:51:58 +00:00
transform: translate(-100%, 0);
2021-09-25 14:57:18 +00:00
}
2022-11-15 14:19:29 +00:00
.loaded .loading-right-bg {
2023-07-03 09:51:58 +00:00
transform: translate(100%, 0);
2021-09-25 14:57:18 +00:00
}
2022-11-15 14:19:29 +00:00
.loaded .spinner-box {
2023-07-03 09:51:58 +00:00
display: none !important;
2021-09-25 14:57:18 +00:00
}
.loader {
2023-07-03 09:51:58 +00:00
position: absolute;
top: calc(50% - 32px);
left: calc(50% - 32px);
width: 64px;
height: 64px;
border-radius: 50%;
perspective: 800px;
transition: all 0.7s cubic-bezier(0.42, 0, 0, 1.01);
2021-09-25 14:57:18 +00:00
}
.inner {
2023-07-03 09:51:58 +00:00
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
border-radius: 50%;
2021-09-25 14:57:18 +00:00
}
.inner.one {
2023-07-03 09:51:58 +00:00
left: 0%;
top: 0%;
animation: rotate-one 1s linear infinite;
border-bottom: 3px solid #efeffa;
2021-09-25 14:57:18 +00:00
}
.inner.two {
2023-07-03 09:51:58 +00:00
right: 0%;
top: 0%;
animation: rotate-two 1s linear infinite;
border-right: 3px solid #efeffa;
2021-09-25 14:57:18 +00:00
}
.inner.three {
2023-07-03 09:51:58 +00:00
right: 0%;
bottom: 0%;
animation: rotate-three 1s linear infinite;
border-top: 3px solid #efeffa;
}
noscript {
z-index: 1000;
position: absolute;
display: flex;
justify-content: center;
width: 100%;
margin-top: 26px;
2021-09-25 14:57:18 +00:00
}
@keyframes rotate-one {
2023-07-03 09:51:58 +00:00
0% {
transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
}
2021-09-25 14:57:18 +00:00
2023-07-03 09:51:58 +00:00
100% {
transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
}
2021-09-25 14:57:18 +00:00
}
@keyframes rotate-two {
2023-07-03 09:51:58 +00:00
0% {
transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
}
2021-09-25 14:57:18 +00:00
2023-07-03 09:51:58 +00:00
100% {
transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
}
2021-09-25 14:57:18 +00:00
}
@keyframes rotate-three {
2023-07-03 09:51:58 +00:00
0% {
transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
}
100% {
transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
}
}