Is it possible to change the speed of HTML's tag?
前端 未结 12 1034
不知归路
不知归路 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:20

    <marquee behavior=scroll direction="left" scrollamount="5">Your message here</marquee>

    scrollamount controls the speed of text: higher the value higher is the scrolling speed

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

    we can control the scrolling speed by using the scrollamount attribute,

    Example:

    <marquee scrollamount="30">scrolling fast</marquee>
    <marquee scrollamount="2">scrolling slow</marquee>
    

    note:if you specify the minimum number, the scrolling speed will be reduce vice versa

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

    This attribute takes the time in milliseconds.

    Delay : 100 Milliseconds

    <marquee scrolldelay="100">Scrolling text</marquee>
    

    Delay : 400 Milliseconds

    <marquee scrolldelay="400">Scrolling text</marquee>
    
    0 讨论(0)
  • 2021-02-01 14:23

    You can Change the speed by adding scrolldelay

    <marquee style="font-family: lato; color: #FFFFFF" bgcolor="#00224f" scrolldelay="400">Now the Speed is Delay to 400 Milliseconds</marquee>

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

    To increase scroll speed of text use attribute

    scrollamount
    OR
    scrolldelay
    

    in the 'marquee' tag. place any integer value which represent how fast you need your text to move

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

    scrolldelay="number"

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