横向滚动
纵向滚到某一段,内容改横向走,适合画廊和时间线;移动端一定留 swipe 手势,别绑架滚轮。
123456
实现提示词
Horizontal scroll section: pinned viewport translates content horizontally on vertical scroll; native swipe on touch devices.Pinned horizontal-scroll gallery with a progress indicator; cards ease in from the right as they enter.设计规范条目
### Horizontal Scroll (#h-scroll) Category: Motion Horizontal scroll: vertical scrolling turns horizontal for one section. Galleries and timelines love it—keep native swipe on mobile. - Do: Horizontal scroll section: pinned viewport translates content horizontally on vertical scroll - Do: native swipe on touch devices With motion: Pinned horizontal-scroll gallery with a progress indicator; cards ease in from the right as they enter. Live demo: https://uidesignmd.com/guides/h-scroll/