About this block
Four small attributes make an overflow row feel native on every device: data-drag-scroll (mouse drag), data-scrollbar-autohide (a data-scrolling flag your CSS uses to show the bar), data-scroll-smoothing (eased wheel) and, on buttons, data-scroll-by with data-scroll-step.
How to customize it
- The arrows need the row to have an id; put the same id in data-scroll-by on each button. data-scroll-step is -1 or 1 and moves by the row's own width.
- data-scrollbar-autohide takes a time (1200ms). The scrollbar is hidden by [scrollbar-width:none] and shown while data-[scrolling] is set.
- Add data-wheel-horizontal to let the vertical mouse wheel pan the row sideways (best on rows that fill the viewport).