JSFiddle - React, Tailwind, and code Playground
by azlar chen
HTML
<div>
</div>
CSS
@keyframes bg-movement {
0% {
background-position: 0 0
}
to {
background-position: 0 100em
}
}
div {
animation: bg-movement 25s linear infinite;
background: linear-gradient(blue, red, black);
border-radius: 2px;
content: "";
display: block;
height: 128px;
left: 50%;
margin-left: -2px;
position: absolute;
width: 40px;
}