vUX · Marquee

A strip that never ends.

Give Marquee a container of items. It clones them until the strip is covered, measures one loop to the pixel and scrolls it forever, with no seam and no duplicated markup in your HTML.

const m = new Marquee(box); m.config.speed = 60; m.initialize();

01Playground

Every config property is live: change it and the running strip follows from the same point in its loop instead of restarting.

strip
moving
config
equivalent code

            

Hover the strip, or tab into it, and it holds still. Keyboard focus counts as hover, so a visitor tabbing through links inside a strip can read them.

02Any markup, links included

Items can be anything. The clones are marked aria-hidden, their links get tabindex="-1" and they lose their ids, so a screen reader reads each card once and Tab visits each link once, while every card on screen stays clickable.

"Dropped it into the landing page in four lines."

read the case

"Resized the window and the loop just kept going."

read the case

"No second copy of the list in our HTML any more."

read the case

"Slowed down for visitors who asked for less motion."

read the case

03Bad input

The constructor, the setters and initialize() check their arguments and throw a descriptive error straight away.

Pick a case above.