Add

Lorem ipsum

Lorem ipsum

A
A
A
Design

0 views

5 min

How to Add Horizontal Scrolling in Webflow

Learn how to create horizontal scrolling in Webflow with CSS flexbox, scroll snap, and navigation buttons.

In this tutorial, Sandro, co-founder of the Gemeos Webflow agency, shows you how to create horizontal scrolling in Webflow for a carousel or a scrolling gallery.

Example

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
CSS propertyValueRole
overflow-xscrollEnables horizontal scrolling
displayflexAligns elements in a row
flex-wrapnowrapPrevents wrapping
scroll-snap-typex mandatoryAdds snap behavior for each item
scroll-snap-alignstartSnap point for each item

1. Create the scroll container

Create a scroll-container Div. Set: overflow-x: scroll (or auto), display: flex, flex-wrap: nowrap. Add scrollbar-width: none to hide the scrollbar. Inside it, add your child elements with a fixed width or min-width.

2. Enable scroll snap

On the container, add this via a CSS embed: scroll-snap-type: x mandatory. On each child item: scroll-snap-align: start. This creates a snapping effect for each item as you scroll.

3. Add navigation buttons (optional)

const container = document.querySelector('.scroll-container');
document.querySelector('.scroll-next').addEventListener('click', function() {
container.scrollBy({ left: 300, behavior: 'smooth' });
});
document.querySelector('.scroll-prev').addEventListener('click', function() {
container.scrollBy({ left: -300, behavior: 'smooth' });
});

good to know

Native CSS horizontal scrolling performs better than Webflow's native Slider component for galleries with lots of items, because it doesn't generate heavy JavaScript. For drag scrolling (click and drag with your mouse), add a mousedown/mousemove listener that updates container.scrollLeft directly.

Conclusion

CSS horizontal scrolling gives you a modern, lightweight experience. Use cases:

  • Client logo galleries
  • Testimonial carousels
  • Horizontal timeline

Good to know

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet consectetur.

Lorem ipsum dolor sit amet consectetur. Aliquam orci sagittis dignissim sapien praesent donec.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Published on

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...