+ 9
How to increase the speed of marquee tag?? Also, I am unable to change the font-family even though I am using it the right way..
https://code.sololearn.com/WHSVqhw98Vni/?ref=app The heading is moving very slow.. Please check what mistake I have done due to which I am unable to change my font family
4 Answers
+ 6
marquee is deprecated and some browsers don't support it anymore.
Instead, take a look at css solution:
CSS:
.marquee {
display: block;
width: 200%;
height: 200px;
position: absolute;
overflow: hidden;
animation: marquee 2s linear infinite;
}
.marquee p {
float: left;
width: 50%;
}
@keyframes marquee {
0% { left: 100%; }
100% { left: -100%; }
}
HTML:
<div class="marquee">
<p>yo yo yo<p>
</div>
+ 5
HNNX đż I don't know why but it's overlapping the text...
+ 5
HNNX đż
Still facing problem with the movement
Please see my code
Open the css part
i have comment out the region.. Can you tell the mistake i have done there
+ 2
Namit Jain try to modify this code:
https://codepen.io/jamesbarnett/pen/kfmKa