19.3. Repeating the Marquee Animation a Number of Times (-wap-marquee-loop Property)
The -wap-marquee-loop property is used to specify the number of times that a marquee animation should repeat. This WCSS property accepts a number as the property value. The marquee animation will repeat forever if the keyword "infinite" is assigned to the -wap-marquee-loop property.
Two WAP CSS examples that can help you understand the usage of the -wap-marquee-loop property are shown below:
{display: -wap-marquee; -wap-marquee-loop: 5}
Meaning: Repeat the marquee animation five times.
{display: -wap-marquee; -wap-marquee-loop: infinite}
Meaning: Repeat the marquee animation infinitely.
The WCSS specification states that the default value of the -wap-marquee-loop property should be 1. Note that, however, it is "infinite" on Openwave Mobile Browser 6.x.
19.4. Controlling the Speed of Marquee Animations (-wap-marquee-speed Property)
The -wap-marquee-speed property is used to specify the speed of a marquee animation. You can assign any of the following three values to this WCSS property:
slow
normal
fast
Two WAP CSS examples are shown below. They can help you understand the usage of the -wap-marquee-speed property.
{display: -wap-marquee; -wap-marquee-speed: slow}
Meaning: Create a slow marquee animation.
{display:
-wap-marquee; -wap-marquee-speed: fast}
Meaning: Create a fast marquee animation.
The default value of the -wap-marquee-speed property is "normal".
Previous Page | Page 32 of 39 | Next Page |
- 1. WCSS (WAP CSS) Introduction
- 2. Wireless CSS and Wireless Profile CSS
- 3. Advantages of Using WAP CSS Style Sheets on Mobile Internet Sites
- 4. Disadvantages of Using WAP CSS Style Sheets on Mobile Internet Sites
- 5. Syntax Rules of WCSS
- 6. Comments in WCSS
- 7. How to Apply WCSS Styles to an XHTML MP Document
- 8. Different Types of Selectors
- 9. Div and Span Element of XHTML MP
- 10. Cascading Rules for Handling Multiple Groups of WCSS Styles Applied to the Same Element
- 11. Common Types of Property Value
- 12. WCSS Font and Text Properties
- 13. WCSS List Properties
- 14. WCSS Color Properties
- 15. WCSS Border Properties
- 16. WAP Specific Extensions to CSS
- 17. WCSS Access Key Extension
- 18. WCSS Input Extension
- 19. WCSS Marquee Extension
- 20. Matching WCSS Cascading Style Sheets to Different User Agents