<!DOCTYPE html>
<html>
<head>
<title>Load</title>
<style>
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
background:#879194;
width: 100%;
height: 600px;
}
.load {
position: relative;
width: 200px;
background: #fff;
padding: 17px 120px;
border-radius:25px;
top: 50%;
margin: 0 auto;
box-shadow: 0px 0px 5px 4px #94ff00;
}
.load span {
position: absolute;
top: 0;
left: 0;
border-radius: 25px;
background:#c3f676;
padding: 17px 3px;
filter:brightness(1000%);
animation: load 2s linear infinite ;
}
@keyframes load{
0% , 100%{
width: 3px;
filter:hue-rotate(90deg);
}
50%{
width: 240px;
filter:hue-rotate(360deg);
}
}
</style>
</head>
<body>
<div class="load">
<span></span>
</div>
</body>
</html>
<html>
<head>
<title>Load</title>
<style>
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
background:#879194;
width: 100%;
height: 600px;
}
.load {
position: relative;
width: 200px;
background: #fff;
padding: 17px 120px;
border-radius:25px;
top: 50%;
margin: 0 auto;
box-shadow: 0px 0px 5px 4px #94ff00;
}
.load span {
position: absolute;
top: 0;
left: 0;
border-radius: 25px;
background:#c3f676;
padding: 17px 3px;
filter:brightness(1000%);
animation: load 2s linear infinite ;
}
@keyframes load{
0% , 100%{
width: 3px;
filter:hue-rotate(90deg);
}
50%{
width: 240px;
filter:hue-rotate(360deg);
}
}
</style>
</head>
<body>
<div class="load">
<span></span>
</div>
</body>
</html>