Why Is ≪Marquee≫ Deprecated and What Is the Best Alternative

What is the equivalent of <marquee> tag in HTML5?

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>

Html marquee tag

It has been deprecated. You'll probably have to use javascript, implementing it with a jQuery UI effect should be straightforward. Check out this demo, I think this is what you are after:
http://remysharp.com/2008/09/10/the-silky-smooth-marquee/

Javascript Marquee to replace <marquee> tags

Here is a jQuery plugin with a lot of features:

http://jscroller2.markusbordihn.de/example/image-scroller-windiv/

And this one is "silky smooth"

http://remysharp.com/2008/09/10/the-silky-smooth-marquee/



Related Topics



Leave a reply



Submit