JSFiddle - React, Tailwind, and code Playground
by Victor
HTML
<div class="image-uploading">
<div class="inner"></div>
</div>
CSS
.image-uploading {
width: 300px;
height: 20px;
background: #e7e7e7;
border-radius: 0px;
overflow: hidden;
margin: 80px auto;
}
.inner {
background: #00BCF2;
width: 50px;
height: 20px;
-webkit-animation: NAME-YOUR-ANIMATION 3s infinite;
-moz-animation: NAME-YOUR-ANIMATION 3s infinite;
-o-animation: NAME-YOUR-ANIMATION 3s infinite;
animation: NAME-YOUR-ANIMATION 3s infinite;
}
@-webkit-keyframes NAME-YOUR-ANIMATION {
0% { width: 0%; }
100% { width: 100% }
}
@-moz-keyframes NAME-YOUR-ANIMATION {
0% { width: 0%; }
100% { width: 100% }
}
@-o-keyframes NAME-YOUR-ANIMATION {
0% { width: 0%; }
100% { width: 100% }
}
@keyframes NAME-YOUR-ANIMATION {
0% { width: 0%; }
100% { width: 100% }
}