Specify the direction of motion for a marquee box.
Syntax marquee-direction direction
auto - The marquee moves in the default direction (right to left).
backwards - The marquee moves from right to left.
left - The marquee moves from right to left.
forwards - The marquee moves from left to right.
right - The marquee moves from left to right.
reverse - The marquee moves from top to bottom.
down - The marquee moves from top to bottom.
ahead - The marquee moves from bottom to top.
up - The marquee moves from bottom to top.
Examples:
h1 { marquee-direction: reverse; }
#emw3id { marquee-direction: forwards; }
.emw3class {
marquee-direction: auto; }
The marquee CSS properties are a replacement for the non-standard HTML <marquee> tag.
The overflow-x property also has to be set before the marquee will take effect.
Try it:
A stationary object remains stationary if the sum of the forces acting upon it - resultant force - is zero. A moving object with a zero resultant force keeps moving at the same speed and in the same direction. |
(CSS 3) Browser Support: None. Use the equivalent -webkit-marquee-direction for Safari and Chrome.
“The direction in which education starts a man will determine his future in life” ~ Plato
Related:
marquee-play-count - The number of times a marquee box repeats.
marquee-style - Style of the moving content.
marquee-speed - How fast to scroll the content.
marquee - Shorthand to set all the marquee properties in one declaration