Help Center

Local Navigation

CSS property: marquee-style

Availability

BlackBerry® Device Software 4.7.1 or later

Usage

all non-replaced block-level elements, table cells, and inline-block elements

Inherited

no

Default value

scroll

The marquee-style property specifies the scrolling behavior when you specify overflow: scroll for the element.

When the content completes the number of scrolling iterations specified by marquee-play-count, the content remains in the end position. The BlackBerry® Browser does not return the content to its initial position unless the marquee-play-count property is reset.

Property values

Value

Description

alternate

This value indicates that the content scrolls left and right within the block box. Specifying this value causes the following behavior:

  1. The content is positioned within the box. The starting position of the content within the box depends on the values for the overflow-style, direction, and marquee-direction properties.
  2. The content moves through the box and continues until the last part of the content moves into the block box.

One iteration is complete when the last portion of the content moves into the block box. For each subsequent iteration, the browser moves the content in the opposite direction.

When all the iterations are complete, the content is positioned within the block box. The ending position is based on the values for the overflow-style, direction, and marquee-direction properties.

scroll

This value indicates that the content scrolls across the block box, and continues until all the content moves out of the block box. Specifying this value causes the following behavior:

  1. The content is positioned outside the box. The starting position of the content outside the box (left side, right side, top, or bottom) depends on the values for the overflow-style, direction, and marquee-direction properties.
  2. The content moves through the box, continuing until the content moves out of the block box.

One iteration is complete when the last part of the content moves out of the block box on the opposite side. For each iteration, the browser returns the content to the starting position and moves the content across the block box again.

When all the iterations are complete, the content is not positioned within the block box.

slide

This value indicates that content scrolls across the block box until the last character is visible, and then stops. Specifying this value causes the following behavior:

  1. The content is positioned outside the block box. The starting position of the content outside the box (left side, right side, top, or bottom) depends on the values for the overflow-style, direction, and marquee-direction properties.
  2. The content moves through the box, and continues until the last part of the content appears in the block box.

One iteration is complete when the last part of the content appears in the block box. For each iteration, the browser returns the content to its starting position and moves the content across the block box again.

When all the iterations are complete, the content is positioned within the block box. The ending position is based on the values for the overflow-style, direction, and marquee-direction properties.

Index


Was this information helpful? Send us your comments.