HTML and CSS Reference
In-Depth Information
Of course, if the marquee-style is set to alternate , the directions will flip back
and forth.
marquee-play-count
This property defines how many times the marquee runs.
Syntax
marquee-play-count: positive number | infinite
Example
<p style="overflow: auto;
overflow-x:-webkit-marquee;
display:-wap-marquee;
overflow-style: marquee-line;
width: 100px;
-webkit-marquee-repetition:5;
-wap-marquee-loop: 5;
marquee-play-count:5;">
ABCDEFGHIJKLMNOPQRSTUVWXYZ
</p>
Compatibility
CSS3
Chrome 1+, Opera 8+, Safari 2+
Notes
• This property is replicable in many browsers using a <marquee> tag.
• The default value is 1, meaning the element performs its effect once.
• This property can be replicated using the HTML marquee tag and setting the loop
attribute to a number or infinite .
• This property is supported as -webkit-marquee-repetition in WebKit-based
browsers like Safari. It's also known as -khtml-marquee-repetition in Safari 2.0.
In these browsers, the default is infinite . If it is not set to infinite , the element
will disappear after it completes the loops.
• This property is supported as -wap-marquee-loop in Opera browsers.
• For some reason, you may see a browser stop the marquee effect after a certain
number of iterations regardless of setting.
marquee-speed
This property defines how fast the marquee scrolls.
Syntax
marquee-speed: fast | normal | slow
Example
<p style="overflow: auto;
overflow-x:-webkit-marquee;
display:-wap-marquee;
Search WWH ::




Custom Search