Search This Blog

Friday, February 3, 2017

How To Manipulate The Speed Of The Marquee HTML Tag


You can specify how fast the speed of a marquee should go. Do you know that? Probably not, or probably yes you know, but you have forgotten how to do it. Well if so, this post will help.





To manipulate the speed of a marquee, we use the SCROLLAMOUNT attribute. Do not be fouled by the term 'scroll amount' thinking that it is meant for how many times the marquee should loop. No. the scrollamount attribute of the marquee tag is used to specify how fast or how slow the marquee should go.
Thus the higher the value of the scrollamount the faster it goes, while the lower the value of the scrollamount attribute signifies the slowness of the marquee.

The scrollamount attribute Value is specified using numbers where 0 is the lowest and 100 the highest.

This is how the code will look like.

The Code:

<marquee behavior="scroll" direction="left" scrollamount="12" >
<div width="400px"> The scrollamount is what is used to specify how fast I should go.
</div>
</marquee>



Also Read:
Team +Pinfoltd



SHARE THIS

0 comments:

Search This Blog