The following properties:
Direction
Set the scrolling direction of active subtitles
The code is as follows:
<marquee direction=down>Set the scrolling direction of active subtitles direction=down: down</marquee>
<marquee direction=left>Set the scrolling direction of active subtitles direction=left: left</marquee>
<marquee direction=right>Set the scrolling direction of active subtitles direction=right: Right</marquee>
<marquee direction=up>Set the scrolling direction of active subtitles direction=up: Up</marquee>
behavior
Set the scrolling method:
alternate: means scrolling back and forth between the two ends.
scroll: means that scrolling from one end to the other end will be repeated.
slide: means scrolling from one end to the other end and will not be repeated.
The code is as follows:
<marquee behavior=alternate>alternate: means scrolling back and forth between the two ends. </marquee>
<marquee behavior=scroll>scroll: means scrolling from one end to the other end and will be repeated. </marquee>
<marquee behavior=slide>slide: means scrolling from one end to the other end and will not be repeated. </marquee>
scrollamount
Set the scrolling speed of active subtitles, unit pixels
The code is as follows:
<marquee scrollamount=10 >scrollamount=10 </marquee>
<marquee scrollamount=20 >scrollamount=20 </marquee>
<marquee scrollamount=30 >scrollamount=30 </marquee>
scrolldelay
Set the delay time between scrolling the active subtitles twice, in millisecond (millisecond)
If the value is too high, there will be a step and a pause effect
The code is as follows:
<marquee scrolldelay=10 >scrolldelay=10 </marquee>
<marquee scrolldelay=100 > scrolldelay=100</marquee>
<marquee scrolldelay=1000>scrolldelay=1000 </marquee>