Marquee
Every direct child of the element becomes an item of an endless loop that slides sideways. The script copies the row as many times as the screen needs, so a short list of logos fills a wide screen without gaps and the loop never shows a seam. The pace is set in pixels per second, so it stays the same whatever the number or width of the items.
Marquee is a Free widget: it works as soon as the companion plugin is installed.
Requires: the Bricksify companion plugin. No library.
Where to find it#
| How | Where |
|---|---|
| As an element | Elements panel > Bricksify > Marquee: a Block that is already a marquee, inserted with six sample items. |
| As a control group | Select a Block, Div or Container and open Marquee (Bricksify) in the Content tab; set Effect to Endless marquee. |
Both use the same settings, saved under the same names. See How widgets work for the difference between the two.
Settings#
| Setting | Options and default | What it does |
|---|---|---|
| Effect (panel only) | None / Endless marquee | Turns it on |
| Speed (px per second) | 50, per breakpoint | Distance per second; 0 = still (it can still be dragged) |
| Direction | Moves left / right, per breakpoint | Which way the row travels |
| Gap between items | per breakpoint | The column gap; kept between the last item and the first one too |
| Edge fade | 0, per breakpoint | Items fade out over this width at both edges (a mask, so any background works) |
| On mouse hover | Keep moving / Pause / Slow down to a quarter | Eases out and back in; touch screens are not affected |
| On keyboard focus | Pause (recommended) / Keep moving | Stops while a link inside has focus and brings that item into view |
| Drag and swipe | Off | Mouse drag and touch swipe; a flick glides on and the autoscroll eases back in. Vertical swipes still scroll the page and a drag never opens a link |
| Reverse while scrolling up | Off | Runs the other way while the page scrolls up |
Items and copies#
Add, remove or reorder items in the structure panel as usual. The copies the script adds are hidden from screen readers and from the Tab key. Styles set on an item, by class or directly on the element, are carried over to its copies.
Accessibility#
Keep On keyboard focus on Pause so keyboard users can stop the motion. With prefers-reduced-motion nothing moves and the row can be scrolled sideways by hand. Without JavaScript the items stay in one clipped row, exactly as laid out.
Use it in a list#
Set the element tag to ul and each item to li: the copies stay valid list items.