Html
    Css
    Js

    
                        
	.loading {
	width:150px;
	height:15px;
	margin:0 auto;
	position:relative;
	margin-top:100px;
}
.loading span {
	position:absolute;
	width:15px;
	height:100%;
	border-radius:50%;
	background:lightgreen;
	-webkit-animation:load 1.04s ease-in infinite  normal;
}
@-webkit-keyframes load {
	0% {
	opacity:1;
	-webkit-transform:translate(0px);
}
100% {
	opacity:0;
	-webkit-transform:translate(150px);
}
}.loading span:nth-child(1) {
	-webkit-animation-delay:0.13s;
}
.loading span:nth-child(2) {
	-webkit-animation-delay:0.26s;
}
.loading span:nth-child(3) {
	-webkit-animation-delay:0.39s;
}
.loading span:nth-child(4) {
	-webkit-animation-delay:0.52s;
}
.loading span:nth-child(5) {
	-webkit-animation-delay:0.65s;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

CSS 加载动画

0