Marquee Examples
The examples below assume that you have imported the component and set up the theme.
Basic
Scroll a row of items in an endless loop. Each child of sv-marquee is one item, and the marquee adds copies of the items to fill the strip.
Reduced Motion
Your system is set to reduce motion. The marquees on this page do not move, and you can scroll them by hand.
<div class="marquee-basic"> <sv-marquee class="strip"> <span class="chip">HTML</span> <span class="chip">CSS</span> <span class="chip">TypeScript</span> <span class="chip">Web Components</span> <span class="chip">Accessibility</span> <span class="chip">Performance</span> </sv-marquee></div>
<style> .marquee-basic { display: grid;
.strip[vertical] { inline-size: 12rem; block-size: 14rem; margin-inline: auto; }
.chip { padding: 0.4em 0.9em; white-space: nowrap; border: 1px solid var(--sv-gray-5); border-radius: 999px; } }</style>