Blog
post page

How to Create a Horizontal Scrolling Effect in Webflow Without Coding

Create an engaging horizontal scrolling effect in Webflow—without any code! Follow this step-by-step guide to add smooth, interactive scrolling to your website effortlessly.
Written By
author image
Mohsin Forhad
Senior Web Developer

How to Create a Horizontal Scrolling Effect in Webflow Without Coding

How to Create a Horizontal Scrolling Effect in Webflow Without Coding

Horizontal scrolling creates a unique and engaging user experience by changing the default vertical scroll direction to a right-to-left movement. The trick? It’s actually vertical scrolling with an interaction that moves elements horizontally as the user scrolls. In this guide, we'll walk you through setting up a horizontal scroll effect in Webflow—no coding required!

See horizontal scrolling in the iframe

Why Use Horizontal Scrolling?

  • Enhances storytelling and user engagement.
  • Provides a smooth scrolling experience for showcasing portfolios, galleries, or product carousels.
  • Adds a modern and interactive touch to your website.

Step 1: Set Up the “Track” Section

The Track Section acts as the container for all horizontally scrolling elements.

  1. Drag a Section element onto your page from the Add panel.
  2. Open the Style Panel and give the section a class name (e.g., "Track").
  3. Set the height of the Section to 400vw.
    • This ensures the scrollable area is four times the viewport width, accommodating four horizontally scrolling items.

Step 2: Create the “Camera” Div Block

The Camera div functions as the viewport through which content will be displayed.

  1. Drag a Div Block into the “Track” Section.
  2. Assign it a class name (e.g., "Camera").
  3. Open the Style Panel and set:
    • Width: 100vw (full viewport width)
    • Height: 100vh (full viewport height)
    • Position: Sticky
    • Top: 0px

This ensures that as users scroll, the Camera remains fixed in place while elements inside it move.

Step 3: Structure the “Frame” Div Block

The Frame div aligns our items horizontally.

  1. Drag another Div Block into the “Camera” div.
  2. Assign it a class name (e.g., "Frame").
  3. Open the Style Panel and set:
    • Layout: Flexbox (horizontal direction)
    • Height: 100% (matches the Camera div height)

Step 4: Add Items to the Frame

  1. Drag a Div Block into the “Frame” div.
  2. Assign it a class name (e.g., "Item").
  3. Open the Style Panel and set:
    • Width: 100vw
    • Height: 100vh
    • Flex Child Sizing: Do not shrink or grow
  4. Add padding (e.g., 40px) for spacing.
  5. Drag an Image Element inside the "Item" div and set:
    • Width: 100%
    • Height: 100%
    • Fit: Cover

Step 5: Configure the “Camera” to Hide Overflow

To prevent items from spilling outside the Camera view:

  1. Select the Camera div.
  2. Open the Style Panel.
  3. Set Overflow to Hidden.

This ensures only one item is visible at a time, and scrolling triggers smooth horizontal movement.

Step 6: Create the Horizontal Scrolling Interaction

The goal is to move the Frame div from right to left as the user scrolls down.Set Up the Interaction Trigger

  1. Select the Track Section.
  2. Open the Interactions Panel.
  3. Click + Add an Interaction.
  4. Choose While Scrolling in View.
  5. Click the Action dropdown and select Play Scroll Animation.
  6. Click + Add a Scroll Animation.
  7. Name the animation (e.g., "Horizontal Scroll Animation").

Move the Frame with the Interaction

  1. Select the Frame div in the Navigator.
  2. Go back to the Interactions Panel.
  3. Click + Add an Animation Step and select Move.
  4. Set movement on the X-axis at 0% Scroll to 0vw.
  5. Set movement on the X-axis at 100% Scroll to -300vw.

Why -300vw?

Since the Track Section is 400vw wide and the viewport only shows 100vw at a time, moving -300vw ensures all four items scroll completely from right to left.

Step 7: Fine-Tune the Interaction

If the animation starts too early or ends too soon:

  1. Open Interactions Panel > Horizontal Scroll Animation.
  2. Adjust the start of the animation to 20% Scroll.
  3. Test by clicking the Preview (eye icon) in Webflow’s Designer.

Instructions Video (Video Source : Webflow University)

Final Thoughts

With Webflow’s Interactions & Animations, you can create a seamless horizontal scrolling effect without writing a single line of code. This technique enhances visual storytelling, making your website more interactive and engaging.Try it out in your next Webflow project and wow your visitors! 🚀