Marquee
A CSS-driven ticker for short, repeated announcements. It preserves the former Carousel marquee layout: a rounded canvas viewport with full-height scrolling cards. Direct child elements scroll continuously and are duplicated internally to create a seamless loop.
Use it for supplementary status or promotional content, not information users must read carefully. The duplicate items are hidden from assistive technology and inert; put interactive content only in the original children.
Basic Usage
<ore-marquee duration="24" pause-on-hover style="height:120px">
<div style="display:flex;align-items:center;justify-content:center;background:var(--color-contrast-100);width:200px;padding:var(--size-4)">
Free shipping on orders over €50
</div>
<div style="display:flex;align-items:center;justify-content:center;background:var(--color-contrast-200);width:200px;padding:var(--size-4)">
New arrivals every Friday
</div>
<div style="display:flex;align-items:center;justify-content:center;background:var(--color-contrast-300);width:200px;padding:var(--size-4)">
Members earn double points this week
</div>
</ore-marquee>Direction and Pause
The ticker moves left by default. Set direction="right" for the reverse motion. The persistent Pause marquee control can stop and resume the ticker. Hover and keyboard focus also pause automatically by default; pause-on-hover="false" disables only those automatic pauses, not the persistent control. Set a height on the marquee and a width on each child card so the loop is predictable.
The pause control remains available when show-controls="false" hides the previous/next buttons.
<ore-marquee direction="right" duration="18" pause-on-hover style="height:120px">
<div style="display:flex;align-items:center;justify-content:center;background:var(--color-contrast-100);width:200px;padding:var(--size-4)">
Live: Design systems conference
</div>
<div style="display:flex;align-items:center;justify-content:center;background:var(--color-contrast-200);width:200px;padding:var(--size-4)">
Next session starts in 10 minutes
</div>
</ore-marquee>API Reference
Attributes / Properties
| Name | Type | Default | Description |
|---|---|---|---|
color | ThemeColor | N/A | Theme color for navigation controls |
duration | number | 20 | Seconds for one complete ticker cycle |
direction | 'left' | 'right' | 'left' | Horizontal scroll direction |
pause-on-hover | boolean | true | Automatically pauses while hovered or keyboard-focused |
show-controls | boolean | true | Shows previous and next controls |
CSS Custom Properties
| Property | Default | Description |
|---|---|---|
--marquee-gap | var(--size-4) | Gap between ticker items |
CSS Parts
| Part | Description |
|---|---|
track | The animated ticker track |
controls | Previous/next controls and the persistent pause toggle |
pause-toggle | The persistent pause/resume button |
Accessibility
The animation stops automatically for prefers-reduced-motion: reduce, and for data-motion="reduced" regardless of the OS setting; data-motion="full" keeps it scrolling despite the OS preference (see Motion Mode). A persistent Pause/Resume button is available when the marquee has content; hover and keyboard focus also pause automatically by default. Set pause-on-hover="false" to disable only the automatic pauses. Because a ticker repeats continuously, do not use it for essential instructions, time-sensitive actions, or content that needs keyboard interaction.