console
<div id="app">
<div class="liang-login">
<div class="liang-login--layer">
<ul class="circles">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="liang-login--layer">
<div class="liang-login--content-header">
<p>时间是一切财富中最宝贵的财富。</p>
</div>
<div class="liang-login--content-main">
</div>
</div>
</div>
</div>
body #app,html #app {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0
}
body,html {
margin: 0;
height: 100%;
font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif
}
.liang-login {
background-color: #f0f2f5;
height: 100%;
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
}
.liang-login .liang-login--layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
}
.liang-login .circles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
padding: 0;
}
.liang-login .circles li {
position: absolute;
display: block;
list-style: none;
width: 20px;
height: 20px;
background: #fff;
-webkit-animation: animate 25s linear infinite;
animation: animate 25s linear infinite;
bottom: -200px;
}
@-webkit-keyframes animate {
0% {
-webkit-transform: translateY(0) rotate(0deg);
transform: translateY(0) rotate(0deg);
opacity: 1;
border-radius: 0;
}
to {
-webkit-transform: translateY(-1000px) rotate(2turn);
transform: translateY(-1000px) rotate(2turn);
opacity: 0;
border-radius: 50%;
}
}
@keyframes animate {
0% {
-webkit-transform: translateY(0) rotate(0deg);
transform: translateY(0) rotate(0deg);
opacity: 1;
border-radius: 0;
}
to {
-webkit-transform: translateY(-1000px) rotate(2turn);
transform: translateY(-1000px) rotate(2turn);
opacity: 0;
border-radius: 50%;
}
}
.liang-login .circles li:first-child {
left: 15%;
width: 80px;
height: 80px;
-webkit-animation-delay: 0s;
animation-delay: 0s;
}
.liang-login .circles li:nth-child(2) {
left: 5%;
width: 20px;
height: 20px;
-webkit-animation-delay: 2s;
animation-delay: 2s;
-webkit-animation-duration: 12s;
animation-duration: 12s
}
.liang-login .circles li:nth-child(3) {
left: 70%;
width: 20px;
height: 20px;
-webkit-animation-delay: 4s;
animation-delay: 4s;
}
.liang-login .circles li:nth-child(4) {
left: 40%;
width: 60px;
height: 60px;
-webkit-animation-delay: 0s;
animation-delay: 0s;
-webkit-animation-duration: 18s;
animation-duration: 18s;
}
.liang-login .circles li:nth-child(5) {
left: 65%;
width: 20px;
height: 20px;
-webkit-animation-delay: 0s;
animation-delay: 0s;
}
.liang-login .circles li:nth-child(6) {
left: 75%;
width: 150px;
height: 150px;
-webkit-animation-delay: 3s;
animation-delay: 3s;
}
.liang-login .circles li:nth-child(7) {
left: 35%;
width: 200px;
height: 200px;
-webkit-animation-delay: 7s;
animation-delay: 7s;
}
.liang-login .circles li:nth-child(8) {
left: 50%;
width: 25px;
height: 25px;
-webkit-animation-delay: 15s;
animation-delay: 15s;
-webkit-animation-duration: 45s;
animation-duration: 45s;
}
.liang-login .circles li:nth-child(9) {
left: 20%;
width: 15px;
height: 15px;
-webkit-animation-delay: 2s;
animation-delay: 2s;
-webkit-animation-duration: 35s;
animation-duration: 35s;
}
.liang-login .circles li:nth-child(10) {
left: 85%;
width: 150px;
height: 150px;
-webkit-animation-delay: 0s;
animation-delay: 0s;
-webkit-animation-duration: 11s;
animation-duration: 11s;
}
.liang-login--content-header {
padding: 1em 0;
}
.liang-login--content-header p {
margin: 0;
color: #606266;
text-align: center;
font-size: 12px;
}
.liang-login--content-main {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
}
.liang-login--form {
width: 320px;
}