<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta
http-equiv="X-UA-Compatible"
content="IE=edge"
>
<meta
name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"
>
<title>单页应用首页加载等待动画</title>
<style>
#shouping-wrapper {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
z-index: 1;
background-color: #f5f5f5;
}
#shouping {
display: block;
position: relative;
left: 50%;
top: 50%;
width: 50px;
height: 50px;
margin: -25px 0 0 -25px;
border-radius: 50%;
border: 3px solid transparent;
border-top-color: #409EFF;
-webkit-animation: shouping-spin 2s linear infinite;
animation: shouping-spin 2s linear infinite;
z-index: 10;
}
#shouping:before {
content: "";
position: absolute;
top: 5px;
left: 5px;
right: 5px;
bottom: 5px;
border-radius: 50%;
border: 3px solid transparent;
border-top-color: #409EFF;
-webkit-animation: shouping-spin 3s linear infinite;
animation: shouping-spin 3s linear infinite;
}
#shouping:after {
content: "";
position: absolute;
top: 15px;
left: 15px;
right: 15px;
bottom: 15px;
border-radius: 50%;
border: 3px solid transparent;
border-top-color: #409EFF;
-webkit-animation: shouping-spin 1.5s linear infinite;
animation: shouping-spin 1.5s linear infinite;
}
@-webkit-keyframes shouping-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes shouping-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
#shouping-wrapper .shouping-section {
position: fixed;
top: 0;
width: 51%;
height: 100%;
z-index: 11;
-webkit-transform: translateX(0);
transform: translateX(0);
}
#shouping-wrapper .shouping-title {
position: absolute;
top: 55%;
width: 100%;
line-height: 30px;
text-align: center;
font-size: 20px;
font-weight: 300;
font-family: 'Open Sans';
color: #409EFF;
z-index: 12;
opacity: 1;
}
</style>
</head>
<body>
<div id="app">
<div id="shouping-wrapper">
<div id="shouping"></div>
<div class="shouping-section section-left"></div>
<div class="shouping-section section-right"></div>
<div class="shouping-title">正在加载 , 请耐心等待...</div>
</div>
</div>
</body>
</html>