If marque is nor supported in html 5 then what is the alternative for this ?? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

If marque is nor supported in html 5 then what is the alternative for this ??

13th Apr 2017, 2:41 AM
Uppati Eeswar Rao
Uppati Eeswar Rao - avatar
3 Antworten
+ 5
there are various means of animation now. for example you can use css <div class="scroll"> hello world! </div> <style> .scroll{ animation: animation 3s infinite; } @keyframes animation{ 0%{ left:0;} 99%{left:100px;} 100%{left:0} } </style> you can do more animations now easily rather than just scrolling text.
13th Apr 2017, 4:11 AM
Sandeep Chatterjee
+ 1
I think that u can try rendering a canvas, then manipulate it with javascript. There must be a better sollution but...
13th Apr 2017, 2:51 AM
Henrique Antonio Gonçalves Miguel
Henrique Antonio Gonçalves Miguel - avatar
+ 1
To my knowledge, current versions of Chrome and Firefox still support marquee although it is considered obsolete. In terms of usability, the best alternative to marquee is to avoid it at all costs! Moving areas of text trigger our archaic reflexes - remember that our ancestors, once they had learned to walk upright, were trained to perceive the movement of approaching predators from the outer corner of their eyes. In these moments, anything but survival became unimportant. Marquee triggers exactly that. It is a distraction that shifts the readers focus from the understanding of textual details to the moving part. In contrast to an approaching sabre-tooth tiger from ancient times, the moving text is NOT vital. It is just a nuisance. To sum it up: It you want to make sure that users miss information on your site, use marqee. Otherwise, please don't.
13th Apr 2017, 3:52 AM
Klaus-Dieter Warzecha
Klaus-Dieter Warzecha - avatar