The quintessential Awwwards-winning effect. As the user scrolls vertically down the page, this component pins itself to the viewport and translates your scrolling into horizontal movement across a massive flex track, only unlocking vertical scroll when you reach the end.
Live Preview
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { HorizontalScrollPin } from "@/components/creative/horizontal-scroll-pin";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { HorizontalScrollPin } from "@/components/creative/horizontal-scroll-pin";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<HorizontalScrollPin
items{/* value */}
/>
</div>
);
}