Is it possible to change the speed of HTML's tag?
前端 未结 12 1095
不知归路
不知归路 2021-02-01 14:04

When one marquee leaves the screen then after a short time gap it enters from another side. Is there any way to reduce this time?

相关标签:
12条回答
  • 2021-02-01 14:31

    On HTML5 the scrollamount and the scrolldelay attributes do not work. They are depricated attributes.

    0 讨论(0)
  • 2021-02-01 14:32
             <body>
             <marquee direction="left" behavior=scroll scrollamount="2">This is basic example of marquee</marquee>
             <marquee direction="up">The direction of text will be from bottom to top.</marquee>
             </body>
    

    use scrollamount to control speed..

    0 讨论(0)
  • 2021-02-01 14:33

    In Order to increase speed of your Marquee text you just need to add like this in your code below:

    <marquee scrollamount="Integer number">scrolling fast</marquee>
    
    0 讨论(0)
  • 2021-02-01 14:36

    I just do:

    <marquee scrollamount="A number">Text here</marquee>
    
    0 讨论(0)
  • 2021-02-01 14:38

    You can change the speed of marquee tag using scrollamount attribute.

    It accepts integer values 6 being the default speed, so any value lower then 6 will slow down the marquee effect.

    Example :

    <marquee scrollamount=4>Scrolling text</marquee>
    

    Read more : http://code2care.org/pages/marquee-tag-scrollamount/

    http://www.htmlcodetutorial.com/_MARQUEE_SCROLLAMOUNT.html

    P.S : Avoid using marquee!

    0 讨论(0)
  • 2021-02-01 14:41

    There isn't specifically an attribute to control that. Marquee isn't a highly reliable tag anyways. You may want to consider using jQuery and the .animate() function. If you are interested in pursuing that avenue and need code for it, just let me know.

    0 讨论(0)
提交回复
热议问题