当一个跑马灯从屏幕上离开后,经过短暂的时间间隔,它会从另一侧进入。有没有办法缩短这个时间?
当一个跑马灯从屏幕上离开后,想要尽可能快速地让其从另一侧进入,可以通过减少转换时间来实现。具体来说,可以尝试减少跑马灯完全消失和重新进入屏幕之间的时间间隔。当一个跑马灯从屏幕上离开后,经过短暂的时间间隔,它会从另一侧进入。有没有办法缩短这个时间?
当一个跑马灯从屏幕上离开后,想要尽可能快速地让其从另一侧进入,可以通过减少转换时间来实现。具体来说,可以尝试减少跑马灯完全消失和重新进入屏幕之间的时间间隔。Use scrollamount with an integer: The higher the scrollamount value, the faster the text.
<marquee scrollamount="1">SLOW TEXT</marquee>
<marquee>DEFAULT SPEED TEXT</marquee>
<marquee scrollamount="10">FAST TEXT</marquee>
<marquee scrollamount="20">Faster text</marquee>
Default scrollamount speed is 6.
<marquee>Text</marquee>
<marquee scrollamount="6">Text</marquee>
<marquee scrollamount="30">Quick text</marquee>
<marquee scrollamount="90">Very Quick text</marquee>
<marquee scrollamount="A number">Text here</marquee>
<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>
使用scrollamount控制速度。
在HTML5中,scrollamount和scrolldelay属性不起作用。它们是废弃的属性。