Pre-Loader for a site on pure CSS (Transition) ucoz
HTML
Code
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
CSS
Code
ul {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
position: relative;
width: 90px;
height: 30px;
}
ul li {
width: 30px;
height: 30px;
border-radius: 50%;
position: absolute;
left: 0;
list-style: none;
-webkit-transform: translatex(-50%);
transform: translatex(-50%);
-webkit-animation: load 1s cubic-bezier(0.58, -0.15, 0.44, 1.15) infinite alternate;
animation: load 1s cubic-bezier(0.58, -0.15, 0.44, 1.15) infinite alternate;
}
ul li:nth-child(1) {
background: #42A5F5;
-webkit-animation-delay: 0.1s;
animation-delay: 0.1s;
}
ul li:nth-child(2) {
background: #2196F3;
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
}
ul li:nth-child(3) {
background: #1E88E5;
-webkit-animation-delay: 0.3s;
animation-delay: 0.3s;
}
ul li:nth-child(4) {
background: #1976D2;
-webkit-animation-delay: 0.4s;
animation-delay: 0.4s;
}
ul li:nth-child(5) {
background: #1565C0;
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
@-webkit-keyframes load {
100% {
left: 100%;
}
}
@keyframes load {
100% {
left: 100%;
}
}