+ 1
If marque is nor supported in html 5 then what is the alternative for this ??
3 odpowiedzi
+ 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.
+ 1
I think that u can try rendering a canvas, then manipulate it with javascript. There must be a better sollution but...
+ 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.