Map and motion

Scroll row

A row of cards that scrolls sideways and snaps to each card. Arrow buttons are optional.

Examples

Row with arrows

The arrows are data-scroll="#rowId" with data-dir="1" (next) or "-1" (previous). site.js does the scrolling and respects reduced motion.

Classes and attributes

NamePurpose
.scroll-rowThe row. Each direct child is one card (340px wide, 82% on phones).
data-scroll="#id"On a button: the row to scroll.
data-dir1 next, -1 previous.