Could someone assist me in creating an animation similar to a marquee using CSS "animation" and "keyframes"?
I attempted to move text from top to bottom, but encountered an issue where the text would only restart its movement from the top once it reached the bottom. I am looking for a continuous scroll effect.
Your help is greatly appreciated.
Code
@keyframes movingTopToBottom {
0% {
top: 50px;
}
100% {
top: 90px;
}
}
#divTAReviews {
animation: movingTopToBottom 3s ease infinite;
-webkit-animation: movingTopToBottom ease 3s infinite;
position: absolute;
}
<div id="container">
<div id="divTAReviews">
<div>
<p class="styling" style="background-color:lightblue;"></p>
</div>
<div>
<p class="styling" style="background-color:lightgreen;opacity:0.3"></p>
</div>
<div>
<p class="styling" style="background-color:palevioletred;opacity:0.3">.</p>
</div>
<div>
<p class="styling" style="background-color:orchid;opacity:0.2"></p>
</div>
</div>
</div>