流动加载中.html 1.22 KB
<html>
<head>
<style>
body, html {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
}

body {
  background-repeat: no-repeat;
  background-position: center;
  background-image: radial-gradient(circle, #989898, #545454);
}

.container {
  width: 240px;
  margin: 20vh auto 0;
}

.container .warning {
  height: 240px;
}

.warning { 
  background-color:#fff;
}
.loading{
   width:240px;
   height:4px;   
   background-image:	
	  linear-gradient(90deg,pink 0em,
			purple 3em,
			purple 3.1em,
			pink 3.2em	                    		
		);
  -webkit-animation: warning-animation 5s infinite linear;
  -moz-animation: warning-animation 5s infinite linear;
   animation: warning-animation 4s infinite linear;
}
@-webkit-keyframes warning-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 0;
  }
}
@-moz-keyframes warning-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 240px 0;
  }
}
@keyframes warning-animation {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 240px 0;
  }
}

</style>
</head>
<body>
	<div class="container">
	    <div class="loading"></div>
		<div class="warning">
		</div>
	</div>
</body>
</html>