Skip to content

Design5 min read

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' });
});

Conclusion

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

  • Client logo galleries
  • Testimonial carousels
  • Horizontal timeline

Published on May 19, 2026

Sandro DA SILVA

Growth Marketer, Webflow expert, and jack-of-all-trades. Sandro handles commercial operations, ensures projects run smoothly, and addresses marketing-related issues (SEO, Tracking, Copywriting, etc).

You're going to working with us, guaranteed

Ready to launch your business?

get a quote

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