Horizontal Scroll

PRONew

Preview live, install via shadcn or copy the source.

Installation

Install via shadcn

This will install the component and its dependencies automatically.

PRO COMPONENT

Unlock with PRO

This component is exclusive to reframe/ui PRO.
Get instant access to all premium components and templates.

Usage

horizontal-scroll-usage.tsxTSX

Props

NameTypeDefaultRequiredDescription
scrubnumber | boolean0.6NoScrub smoothing – number is lag seconds, true = 1s.
breakpointnumber768NoPx breakpoint below which pin is disabled and native snap takes over.
revealbooleantrueNoAnimate [data-hs-reveal] chrome on enter.
pinbooleantrueNoPin on desktop. If false, height is not stretched.
scrollerstring | HTMLElement | nullNoCustom ScrollTrigger scroller (selector or element). Needed inside fixed overflow containers like PreviewModal.
pinOffsetnumber24NoExtra px added to pinned height.
classNamestringNoSection wrapper class.
childrenReact.ReactNodeYesCompose with HS* primitives: HSSticky, HSHeader, HSTitle, HSDescription, HSViewport, HSTrack/HSContent, HSItem, HSProgress, HSCounter, etc.
© reframe/ui 2026Built by @thommysart
More in Scroll Effects