Something not working with my marquee text animation, the animation not doing nothing and I dont know why, can someone help me understand whats I am doing wrong please? What I'm trying to do is have the text move non-stop from to the right and come back from the left.
.marquee-wrapper {
overflow:hidden;
background-color:black;
}
.marquee-text-content {
display:flex;
flex-direction: row;
width:10000px;
}
.marquee-text {
margin-left: 50px;
animation: marquee-animation 10s infinite linear ;
float: left;
}
.marquee-text span {
font-style:italic;
font-family:"Cabin";
font-size: 2.3vw;
color: #F0F0F0;
text-transform: uppercase;
font-weight:bold;
letter-spacing:2px;
}
@keyframes marquee-animation {
from{left:0}
to{left:-100%}
}
<div class="marquee-wrapper">
<div class="marquee-text-content">
<div class="marquee-text">
<span class="marquee-item">Free shipping</span>
</div>
<div class="marquee-text">
<span class="marquee-item">Free shipping</span>
</div>
<div class="marquee-text">
<span class="marquee-item">Free shipping</span>
</div>
<div class="marquee-text">
<span class="marquee-item">Free shipping</span>
</div>
<div class="marquee-text">
<span class="marquee-item">Free shipping</span>
</div>
</div>
</div>
Thanks!