This Is My First Question On This Website So I Don't Know If I Implemented The Format Correctly.. So Incase this Post Is Missing Something Crucial Which is Necessary Please Tell Me At The Comments.
Here Below Is My Code
#recupd {
display: inline-block;
padding-left: 100%;
animation: marquee 10s linear infinite;
}
@keyframes marquee {
0% { transform: translate(0, 0); }
100% { transform: translate(-100%, 0); }
}
<div style = "overflow: hidden;white-space: nowrap;box-sizing: border-box;">
<b>
<span id = "rectitle" style = "color:darkred;z-index: 2;background-color: cyan;">Recent Updates:</span>
<span id = "recupd">Some Random Recent Update</a></span>
</b>
</div>
I Tried To Use A Method Similar To This Click Here But It doesn't seem to work.
I Also Tried Making The Title Element Opaque and also tried to use Div Instead Of Span But That Makes The Moving Text Go Below The Line Which I Don't Want To Happen
So I Need Help In Making It Such That Whenever Some Part Of Text Going Below The Title It Isnt Visible To User Even Though it Exists And Rest Of The Text Still Intact.