Desktop · 1280px · shown at 0% · scroll inside the preview to see the effect
Horizontal Scroll Gallery — Free Website Section Template
Scroll effects · v1.0.0 · Updated 2026-10-22 · Responsive · GSAP animation · HTML, React & Vue
Extend with AI
Take This Section Further With AI
The AI prompt for this one is for Patreon supporters ($3 a month), along with a site with no ads. Supporters enter the passcode once and it is remembered in this browser.
What's included
Features
About this section
Horizontal Scroll Gallery — Free GSAP Pinned Section

Horizontal Scroll Gallery turns vertical scrolling into sideways movement. On laptops and desktops the section pins to the screen and its row of tall image cards slides left as visitors keep scrolling down; when the last card arrives, the page carries on as normal.
Built with GSAP ScrollTrigger
The row is pinned and scrubbed with ScrollTrigger, and the scroll distance is measured from the row itself, so it always matches the number and width of your cards, including after a resize.
A real layout without JavaScript
The section is a swipeable row with CSS scroll snapping first. On phones, without JavaScript, with reduced motion and while you edit it, that is exactly what visitors get, so nothing is ever hidden.
Edit every card
Cards are an editable list of 2 to 12, each with an image, tag, title, text and link. Export HTML, a ZIP, React or Vue, or fork it into My Code. Pair it with the Pinned Scroll Story for a page full of scroll moments.
Getting the most from it
Choose images with the same aspect ratio so the row feels even, and give each card a short tag, such as the room type or the category, so visitors can tell the cards apart as they scroll sideways. Six to eight cards are enough for most pages. Make each title descriptive, since it also becomes the text search engines read, and link every card to its own page. Remember that on a phone the gallery is a normal vertical list, so check that the first card is strong on its own.
Why use it
Why Use the Horizontal Scroll Gallery
How it’s different
How It’s Different From Other Free Section Templates
Step by step
How to Use
- 1Edit the contentFill in the heading and cards in the panel. Wrap words in *asterisks* to colour them.
- 2Add your imagesUpload your own images (resized in your browser and kept on your device) or paste a hosted image URL.
- 3Match your brandPick a colour preset or exact colours, choose heading and body fonts from Google Fonts or your own uploaded font, set the corner radius and width, or apply your brand kit.
- 4Animate and previewThis section is driven by scrolling: scroll inside the preview to see the effect, press Refresh to restart it from the top, and check the section on desktop, tablet and mobile.
- 5Save and exportSave it to My designs, then export a single HTML file, a ZIP with your images, a React or Vue component, or fork it into My Code.
Real-world uses
Common Use Cases
In real websites
Website Templates That Use the Horizontal Scroll Gallery Section
The Horizontal Scroll Gallery section is part of 1 complete website template in the free Website Builder, so you can see it in a full page before you use it on its own: Boutique Hotel Website. Open any of them in the builder to edit the whole page, or keep customising this section by itself.
Got questions?
Frequently Asked Questions
GSAP ScrollTrigger pins the section and moves the row of cards left in step with your vertical scrolling. The scroll length equals how far the row overflows, so it always ends exactly at the last card.
Below 768px the row stays a native swipeable row with scroll snapping, which feels more natural on touch screens than a pinned section.
Yes. All cards are ordinary links in the HTML, reachable with the keyboard and screen readers. People who prefer reduced motion get the swipeable row instead of the pinned animation.
Yes. Export it as a React or Vue component; the ScrollTrigger script is included and runs on the client. Load GSAP and ScrollTrigger from the CDN links in the export or from npm.
It saves an editable copy of your Horizontal Scroll Gallery in My Code, the UI Snippets code editor: the section markup goes in the HTML panel, its CSS (theme variables, base styles and layout) in the CSS panel, and the GSAP library is added as a CDN link, so you can keep refining the code and save your own versions.
Yes. Every section is free for personal and commercial work, with no account, no watermark and no attribution: export it on its own as HTML, React, Vue or Next.js from its page, or use it in a website you build and export in the Website Builder.