<div class="container-line">
<div class="container-line-center">
<div class="line-item one"></div>
<div class="line-item two"></div>
<div class="line-item three"></div>
<div class="line-item four"></div>
</div>
</div>
.container-line {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999;
margin: 0 auto
}
.container-line-center {
width: 70%;
margin: 0 auto;
position: relative;
height: 100%
}
.line-item {
float: left;
width: 25%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
height: 100%;
position: relative
}
.line-item,.line-item:first-child {
border-right: 1px solid rgba(0,0,0,.1)
}
.line-item.one:before {
content: "";
position: absolute;
top: 0;
right: -3px;
width: 5px;
height: 30px;
-webkit-animation: scroll 8s ease-out infinite;
animation: scroll 8s ease-out infinite;
background: #ffe000
}
.line-item.two:before {
top: 10%;
-webkit-animation: scroll 6s ease-out infinite;
-mox-animation: scroll 6s ease-out infinite;
animation: scroll 6s ease-out infinite
}
.line-item.three:before {
top: 5%;
width: 5px;
height: 30px;
-webkit-animation: scroll 6s ease-out infinite;
-mox-animation: scroll 6s ease-out infinite;
animation: scroll 6s ease-out infinite;
background: #ffe000;
}
.line-item.four:before,.line-item.two:before,.line-item.three:before {
content: "";
position: absolute;
right: -2px;
width: 5px;
height: 30px;
background: #ffe000
}
.line-item.four:before {
top: 0;
-webkit-animation: scroll 5s ease-out infinite;
animation: scroll 5s ease-out infinite
}
@keyframes scroll {
0%, 100% {
transform: translate(0, 0);
}
50% {
transform: translate(0, 200px);
}
100% {
transform: translate(0, 0);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.