Best for · Website builders

Webflow horizontal scroll: three ways to build it

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • the no-code interaction if you want it done in the Designer in about half an hour.
  • GSAP ScrollTrigger if you want pinning, nested animations and finer control; Webflow made GSAP 100% free, including commercial use.
  • a plain swipe strip with CSS scroll snap if you want something that just works on phones and does not hijack scrolling.

Compared here

  • 01Sticky track with a Webflow scroll interaction
  • 02GSAP ScrollTrigger (pin and scrub)
  • 03Native swipe strip with CSS scroll snap
  • 04Cloneable or library sections

Short answer

A Webflow horizontal scroll section is not really horizontal scrolling. Webflow's own help article puts it this way: "it's vertical scrolling with an interaction that moves elements in our viewport as we scroll." You build a tall section (the track), put a full-screen sticky wrapper inside it (the camera), put a wide row of panels inside that (the frame), and add a scroll interaction that moves the frame left on the X axis while the track scrolls through view.

Pick the no-code interaction if you want it done in the Designer in about half an hour. Pick GSAP ScrollTrigger if you want pinning, nested animations and finer control; Webflow made GSAP 100% free, including commercial use. Pick a plain swipe strip with CSS scroll snap if you want something that just works on phones and does not hijack scrolling. Below: each method step by step, the settings, and the traps that break it.

Try Webflow

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

Built from Webflow's GSAP announcement, GSAP's ScrollTrigger docs and MDN's CSS references, read 3 December 2026. Webflow's Help Center article on horizontal scrolling blocked our reader that day; its wording is quoted as it appears in search results. Effort and fit columns are our judgement.
MethodCode neededEffortFeels likeMobileBest for
Sticky track + Webflow scroll interactionNoneMediumPage scrolls down, content slides sidewaysWebflow advises turning it off on small screensPortfolios, case studies, timelines
GSAP ScrollTrigger pin and scrubSome JavaScriptMedium to hardSame, with pinning and nested animationsUse gsap.matchMedia to switch off by breakpointAgencies, award-style sites
Swipe strip with overflow and scroll snapA few CSS properties, or none in the DesignerEasyUser swipes or shift-scrolls sidewaysWorks naturallyProduct cards, logos, testimonials
Cloneable or library sectionDepends on the sourceEasySame as the method it usesDependsWhen you want a head start

Money first. Webflow pays affiliates 50% for 12 months, and our Webflow link goes through vectaai.com/go/webflow. Nothing else on this page earns us anything: GSAP is free and CSS has no affiliate program, sadly.

How we checked: we read Webflow's GSAP announcement, GSAP's ScrollTrigger documentation and MDN's pages on sticky positioning and scroll snap on 3 December 2026. Webflow's Help Center article on horizontal scrolling returned a block page to our reader, so we quote its key lines as they appear in search results and do not copy its exact click-by-click settings. The recipe below is the standard pattern that article describes. If Webflow's Designer labels differ on your screen, the structure still holds.

For scroll animations in general (fade in on scroll, parallax, progress bars), see our Webflow scroll animation guide. This page is only about the sideways-sliding section.

The trick behind every horizontal scroll

Visitors keep scrolling down, like on any page. While a certain section is on screen, the page stops looking like it is moving down. Instead, a row of panels slides left. When the row ends, normal scrolling continues.

Three boxes make that happen:

  • Track: a tall section. Its height is the amount of scrolling the effect uses.
  • Camera: a box inside the track that is exactly one screen tall and sticks to the top of the screen while the track scrolls past. It hides anything outside it.
  • Frame: a wide row of panels inside the camera. This is what moves sideways.

Webflow's help article uses these exact names (track, camera, frame) and says the camera gets hidden overflow so visitors cannot scroll it by hand.

Method 1: no code, with a Webflow scroll interaction

Step 1: build the track

  1. Add a Section and give it a class, for example h-track.
  2. Set its height. Start with about 100vh per panel: four panels, 400vh. Taller makes the slide slower; shorter makes it faster.
  3. Do not set overflow hidden on this section. More on that trap below.

Step 2: build the camera

  1. Inside the track, add a Div Block with class h-camera.
  2. Set Position: Sticky, Top: 0.
  3. Set Height: 100vh, Width: 100%.
  4. Set Overflow: Hidden.

MDN is clear on the sticky rule: at least one inset such as top must be set to a value other than auto, or "the sticky value will behave as relative." Forget Top 0 and nothing sticks.

Step 3: build the frame and panels

  1. Inside the camera, add a Div Block with class h-frame.
  2. Set Display: Flex, Direction: Horizontal, No wrap.
  3. Set its Width to the total width of your panels. Four full-screen panels: 400vw.
  4. Add your panels inside: each a Div Block with Width: 100vw, Height: 100vh (or 100%). Put images, text and case studies inside them.

At this point, in the Designer, you see the first panel and the rest is hidden off to the right. Good.

Step 4: add the scroll interaction

  1. Select the track (h-track) and open the Interactions panel.
  2. Add an element trigger for scrolling, the kind that follows scroll progress while the element is in view (in Classic Interactions this is While Scrolling in View; in the newer Interactions with GSAP, use a scroll trigger set to scrub with the scroll).
  3. Create an animation with two keyframes:
    • at 0%: Move the frame (h-frame) on X: 0vw,
    • at 100%: Move the frame on X: -300vw.
  4. The end value is minus the extra width: total frame width minus one screen. Four panels of 100vw: -(400 - 100) = -300vw. Five panels: -400vw.
  5. Set the interaction to affect the class or the specific element, then publish and test on the live site. Interactions look better live than in preview.

Smoothing. Classic Interactions offer a smoothing setting on scroll animations. A little makes it feel softer; a lot makes it feel laggy. Start low.

Step 5: handle smaller screens

Webflow's help article notes this effect does not work well on mobile and suggests limiting it to desktop: on tablet and phone breakpoints, switch the frame's flex direction to vertical and turn the interaction off for those breakpoints. Set the track height back to auto on those breakpoints too, or you will leave a giant empty gap.

The trap that breaks most builds: overflow and sticky

If your camera refuses to stick, this is almost always why. MDN: a sticky element "sticks to its nearest ancestor that has a 'scrolling mechanism' (created when overflow is hidden, scroll, auto, or overlay), even if that ancestor isn't the nearest actually scrolling ancestor."

In plain words: if the track, any wrapper above it, or the body has overflow hidden, the camera sticks to that box instead of the screen, which means it does not appear to stick at all. People add overflow hidden on a page wrapper to stop sideways scrollbars, then wonder why their horizontal scroll died.

Fixes:

  • Remove overflow hidden from every parent of the camera.
  • If you added it to hide a horizontal scrollbar, put it on the camera only (which is where it belongs).

Other usual suspects: the track is not taller than the screen, the camera is missing Top 0, or the Move X end value does not match the frame width, so the last panel stops halfway or overshoots into empty space.

Method 2: GSAP ScrollTrigger (pin and scrub)

If you want the section pinned by GSAP instead of CSS sticky, or animations inside the panels that react to the sideways movement, use ScrollTrigger.

GSAP licence first. Webflow's announcement says GSAP is "100% free for all users", "whether or not you're a Webflow customer", "including the previously paid Club plugins", and that the standard licence now covers commercial use.

The pattern, using GSAP's documented options:

gsap.registerPlugin(ScrollTrigger);

const track = document.querySelector(".h-track");
const panels = gsap.utils.toArray(".h-panel");

const slide = gsap.to(panels, {
  xPercent: -100 * (panels.length - 1),
  ease: "none",
  scrollTrigger: {
    trigger: track,
    pin: true,
    scrub: 1,
    end: () => "+=" + track.offsetWidth * (panels.length - 1),
    invalidateOnRefresh: true
  }
});

What each option does, per GSAP's docs:

  • pin: keeps the element fixed while the ScrollTrigger is active. GSAP warns: "don't animate the pinned element itself because that will throw off the measurements." Pin the track, move the panels.
  • scrub: links the animation to the scrollbar "so it acts like a scrubber"; a number such as 1 is the seconds it takes to "catch up," which smooths it.
  • start: defaults to "top top" when pin is true, which is what you want here.
  • invalidateOnRefresh: recalculates starting values on refresh, so it survives a window resize.
  • ease: "none": needed for a steady slide, and required if you use the next trick.

Animations inside the panels. GSAP's containerAnimation option lets you trigger animations "inside 'horizontally' scrolling sections that are controlled by vertical scrolling." Two rules from the docs: "the container's animation must use a linear ease," and "pinning and snapping aren't available on containerAnimation-based ScrollTriggers."

Breakpoints. Use gsap.matchMedia() to run the horizontal setup only on wider screens; GSAP's docs mark the older ScrollTrigger.matchMedia() as deprecated.

In Webflow, add the GSAP and ScrollTrigger scripts and your code in the page's custom code (before the closing body tag). Custom code needs a paid plan. When using GSAP's own pin, do not also make the track sticky with CSS; pick one.

Method 3: a swipe strip with CSS scroll snap

Sometimes the honest answer is: do not hijack the scroll at all. A row of product cards, logos or testimonials that people can swipe sideways is simpler, works on phones by default, and annoys nobody.

  1. Make a Div Block with Display: Flex, No wrap, Overflow: Auto (horizontal).
  2. Give each card a fixed width so they overflow the row, for example 80% on mobile and 30% on desktop.
  3. For snapping, add scroll-snap-type: x mandatory on the row and scroll-snap-align: start on each card. MDN's own example uses exactly this pattern. Webflow's Designer may not show every property; add them in an embed style block if needed.

mandatory always snaps to a card; proximity snaps only when close, and MDN says it is the default strictness. Mandatory feels tidier for full-width cards; proximity feels freer for narrow ones.

Add left and right arrow buttons if desktop users without a trackpad need them. That takes a few lines of JavaScript.

Method 4: start from a cloneable or library

Plenty of Webflow designers sell or share ready horizontal scroll sections. Some use Webflow interactions, others use GSAP with data attributes you drop on your elements. Before you clone one, check which method it uses (so you know how to fix it), whether it needs custom code (paid plan), and whether it switches off on mobile. Our Webflow component library guide covers the free and paid libraries. For practice projects, see the Webflow practice template page.

Accessibility and comfort

  • Reduced motion. Some visitors set their device to reduce motion. Respect it: under a prefers-reduced-motion: reduce media query, show the panels stacked vertically and skip the animation. With GSAP, gsap.matchMedia can check this too.
  • Keyboard users. Make sure links and buttons inside panels can be reached with Tab and that focusing one does not leave it hidden off-screen.
  • Do not overuse it. One horizontal section per page is a nice moment. Three is a theme park ride.

Which method should you pick?

  • Portfolio or case study section, no code: Method 1.
  • Award-style site with animations inside the panels: Method 2, GSAP.
  • Cards, logos, testimonials, anything mobile-heavy: Method 3, the swipe strip.
  • Short on time: Method 4, then learn how it works before you ship it.

The website builders hub has the rest of our Webflow guides.

How we checked

We read the Webflow GSAP announcement, the GSAP ScrollTrigger docs, MDN on position: sticky and MDN on scroll-snap-type on 3 December 2026. Webflow's horizontal scrolling help article returned 403 to our reader; we quote it only as it appears in search results. Track height and smoothing values are starting points, not official numbers. When Webflow's docs differ from ours, Webflow's docs win. More on how we pick.

Questions people ask

How do I make a horizontal scroll in Webflow?

Make a tall section as the track, put a 100vh sticky div with overflow hidden inside it as the camera, and put a flex row of panels inside that as the frame. Add a scroll interaction on the track, such as While Scrolling in View, that moves the frame from 0 to minus the extra width on the X axis.

Why is my Webflow horizontal scroll not working?

Usually sticky is broken. MDN notes a sticky element sticks to its nearest ancestor with overflow hidden, scroll or auto, so overflow hidden on the track, a wrapper or the body stops it sticking. Also check the camera has top set to 0, the track is taller than the screen, and the Move X end value matches your panel width.

How tall should the track be for horizontal scrolling?

A common starting point is one screen of height per panel: four panels, about 400vh. Taller means slower sideways movement for the same scroll; shorter means faster. There is no official number. Adjust it until the speed feels comfortable on a laptop trackpad and a mouse wheel.

Does horizontal scroll work on mobile in Webflow?

It often feels awkward on phones, and Webflow's help article suggests limiting the effect to desktop and switching the frame to a vertical layout on smaller breakpoints. A simple swipe strip with overflow and scroll snap is the friendlier mobile pattern. Test on a real phone, not only the Designer preview.

Is GSAP free to use in Webflow?

Yes. Webflow's announcement says GSAP is now 100% free for all users, Webflow customers or not, including the previously paid Club plugins, and that the standard licence now covers commercial use. ScrollTrigger, which handles pinning and scrubbing, is included. Webflow's newer Interactions with GSAP also build on it visually.

Is horizontal scrolling bad for SEO or accessibility?

Not for SEO by itself: the content is still in the page HTML. For accessibility, it can be hard for keyboard users and people sensitive to motion. Keep content readable without the animation, avoid trapping focus, and respect the reduced motion setting so users who asked for less motion get a normal vertical layout.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Webflow Help Center: Horizontal scrolling (returned 403 to our reader), checked 3 Dec 2026
  2. Webflow blog: Webflow makes GSAP 100% free, checked 3 Dec 2026
  3. GSAP docs: ScrollTrigger, checked 3 Dec 2026
  4. MDN: CSS position (sticky), checked 3 Dec 2026
  5. MDN: scroll-snap-type, checked 3 Dec 2026