Issue
In HTML 4, there is this <marquee> tag that shows sliding text across the screen.
What is its equivalent in HTML5?
Solution
By css animation you can do the same thing
.holder {
background:#ccc;
padding:0.5rem;
overflow: hidden;
}
.news {
animation : slide 10s linear infinite;
}
@keyframes slide {
0% {
transform: translatex(0%)
}
100% {
transform: translatex(100%)
}
}
<div class="holder">
<div class="news">Hello....</div>
</div>
Answered By - Muhammed Albarmavi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.