Can someone show me how to turn cards on a grid into a horizontal carousel on mobile and smaller breakpoints in Webflow, with horizontal scrolling enabled for touchpad and touch?

Published on
September 22, 2023

To transform cards on a grid into a horizontal carousel on mobile and smaller breakpoints in Webflow, with horizontal scrolling enabled for touchpad and touch, you can follow these steps:

  1. Create a grid: Start by setting up your card layout using a grid. Place the cards inside the grid so that they are aligned horizontally.

  2. Enable overflow: Select the grid element and go to the Styles panel. Under the Overflow dropdown, select "Scroll." This will enable scrolling for the grid.

  3. Set grid display: In the Styles panel, select the grid element again and set its display property to "Grid." This will ensure that the cards are displayed in a grid layout.

  4. Adjust grid settings: Modify the grid settings to ensure the cards are displayed correctly. You may need to adjust the number of columns and row heights to fit your design requirements.

  5. Create a new class: Select one of the cards within the grid. In the Class field of the Styles panel, click on the Plus (+) icon to create a new class. Give it a name, such as "carousel-card."

  6. Apply horizontal scrolling: With the new class selected on the card, go to the Styles panel. Scroll down to the Transform section and set the Overflow X property to "Scroll." This will enable horizontal scrolling for the card.

  7. Enable touchpad and touch scrolling: In the Styles panel, scroll to the Touch section and check the "Enable touchpad scrolling" and "Enable touch scrolling" checkboxes. This will ensure that touch and touchpad devices can scroll horizontally on the card.

  8. Apply class to all cards: After setting up the "carousel-card" class on one card, select all the other cards within the grid and apply the same class. This will ensure that all the cards have the same horizontal carousel behavior.

  9. Configure responsive settings: Lastly, ensure that the grid and card behaviors are responsive. You can adjust the number of columns, row heights, and other grid settings for different breakpoints to optimize the layout for each device size.

With these steps, you can turn your cards on a grid into a horizontal carousel on mobile and smaller breakpoints in Webflow, with horizontal scrolling enabled for touchpad and touch.

Additional questions:

  1. How do I create a grid layout in Webflow?
  2. How can I enable horizontal scrolling for an element in Webflow?
  3. What are the responsive design options available in Webflow?