JSFiddle - React, Tailwind, and code Playground

by tabalinas

HTML

<div class="pulldown active">
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
    <div class="d4"></div>
</div>

CSS

.pulldown{
    width: 100%;
    height: 5px;
    border: 1px solid gray;
    position: relative;    
    overflow: hidden;
    background: #6af;
}
.pulldown div{
    position: absolute;
    width: 5px;    
    height: 5px;    
    background: white;
    top: 0;
    left: 0;
}

.pulldown.active .d1{
    -webkit-animation: anim 2s ease-in infinite 0;
}

.pulldown.active .d2{
    -webkit-animation: anim 2s ease-in infinite 500ms;
}

.pulldown.active .d3{
    -webkit-animation: anim 2s ease-in infinite 1000ms;
}

.pulldown.active .d4{
    -webkit-animation: anim 2s ease-in infinite 1500ms;
}

.pulldown.active .d1,
.pulldown.active .d2
.pulldown.active .d3
.pulldown.active .d4{
    
}

@-webkit-keyframes anim {
   0% { left: 0;}    
   100% { left: 100%;}
}




.hi {
    width: 50px;
    height: 72px;
    background-image: url("http://files.simurai.com/misc/sprite.png");
    
    -webkit-animation: play .8s steps(10) infinite;
       -moz-animation: play .8s steps(10) infinite;
        -ms-animation: play .8s steps(10) infinite;
         -o-animation: play .8s steps(10) infinite;
            animation: play .8s steps(10) infinite;
}

@-webkit-keyframes play {
   from { background-position:    0px; }
     to { background-position: -500px; }
}

@-moz-keyframes play {
   from { background-position:    0px; }
     to { background-position: -500px; }
}

@-ms-keyframes play {
   from { background-position:    0px; }
     to { background-position: -500px; }
}

@-o-keyframes play {
   from { background-position:    0px; }
     to { background-position: -500px; }
}

@keyframes play {
   from { background-position:    0px; }
     to { background-position: -500px; }
}