Map and motion
Marquee
A slow, endless line of big words. Even items are drawn as outlines for a lively rhythm.
Example
Sliding line
- Buy a home
- Sell with confidence
- Rent with ease
Write the items twice. The second list has aria-hidden="true", so screen readers read them once. It pauses on hover and stands still for visitors who prefer reduced motion. Only transform is animated.
Swipe marquee
A marquee you can also drag or swipe. It drifts on its own, pauses on hover and keeps going after you let go. Add data-swiper="marquee" to a .swiper with .marquee-swipe. Repeat the words so the loop has enough slides.
Swipe marquee, opposite direction
Use .marquee-swipe--solid for a green band with light text, and data-swiper-options with reverseDirection to run it the other way. Stack the two for a classic two-line look.
Classes and attributes
| Name | Purpose |
|---|---|
.marquee | Outer strip, hides the overflow. |
.marquee-track | Moves sideways. Holds two identical lists. |
.marquee li | One word. A dot is drawn after it. |
.marquee-swipe + data-swiper="marquee" | Draggable Swiper marquee. --solid gives a green band. |