How to Stack Rows on Scroll with Divi’s Sticky Options

Last Updated on September 17, 2022 by 13 Comments

How to Stack Rows on Scroll with Divi’s Sticky Options
Blog / Divi Resources / How to Stack Rows on Scroll with Divi’s Sticky Options

Ever since Divi and its sticky options have come out, we’ve shown you ways on how to use the different features throughout your website builds, particularly inside headers. But there are a ton of ways you can use the sticky options to enhance the user experience people have on your website and make your website shine. In today’s tutorial, for example, we’ll show you how to stack rows on scroll with Divi’s sticky options. As soon as a row touches the top of your viewport, it’ll start going below the next row, which gives a stacking effect that looks beautiful. We’ll recreate the design from scratch and you’ll be able to download the section’s JSON file for free as well!

Let’s get to it.

Preview

Before we dive into the tutorial, let’s take a quick look at the outcome across different screen sizes.

Desktop

stack rows

Mobile

stack rows

Download The Row Stacking Layout for FREE

To lay your hands on the free row stacking layout, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our newsletter by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

1. Create First Row Concept

Add New Section

Spacing

In the first part of this tutorial, we’ll start laying down the foundation of our first row. Once we’re done styling the elements in the first row, we can reuse it entirely to create the row stacking effect. Add a new section to the page you’re working on. Open the section settings and apply some custom padding values across different screen sizes.

  • Top Padding:
    • Desktop: 100px
    • Tablet: 40px
    • Phone: 25px
  • Bottom Padding:
    • Desktop: 100px
    • Tablet: 40px
    • Phone: 25px

stack rows

Add New Row

Column Structure

Continue by adding a new row using the following column structure:

stack rows

Sizing

Without adding any modules yet, open the row settings and apply the following sizing settings:

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Equalize Column Heights: Yes
  • Width: 90%
  • Max Width: 2580px

stack rows

Spacing

Next, remove all default top and bottom padding.

  • Top Padding: 0px
  • Bottom Padding: 0px

stack rows

Column 1 Settings

Background Color

Then, open the column 1 settings and apply a background color of your choice.

  • Background Color: #2b343b

stack rows

Background Image

Use a background image as well. If you want to use the ones that are displayed throughout this tutorial, download the zipped folder at the beginning of the tutorial and upload the background images to your media library.

  • Background Image Size: Fit

stack rows

Spacing

Move on to the column’s design tab and apply the following padding values across different screen sizes next:

  • Top Padding:
    • Desktop: 25%
    • Tablet: 40%
    • Phone: 50%
  • Bottom Padding:
    • Desktop: 25%
    • Tablet: 40%
    • Phone: 50%
  • Left Padding: 5%
  • Right Padding: 5%

stack rows

Column 2 Settings

Background Color

Then, open the second column and use a background color there too.

  • Background Color: #394751

stack rows

Spacing

Along with some custom padding values.

  • Top Padding: 13%
  • Bottom Padding: 13%
  • Left Padding: 8%
  • Right Padding: 8%

stack rows

Box Shadow

And a box shadow.

  • Box Shadow Vertical Position: 20px
  • Box Shadow Blur Strength: 50px
  • Shadow Color: rgba(0,0,0,0.14)

stack rows

Add Text Module to Column 1

Add H2 Content

Time to add modules, starting with a Text Module in column 1. Place some H2 content of your choice inside the content box.

stack rows

H2 Text Settings

Move on to the module’s design tab and style the H2 text settings accordingly:

  • Heading 2 Font: Alata
  • Heading 2 Font Weight: Bold
  • Heading 2 Text Alignment: Center
  • Heading 2 Text Color: #ffffff
  • Heading 2 Text Size:
    • Desktop: 200px
    • Tablet: 150px
    • Phone: 100px
  • Heading 2 Letter Spacing: -1px

stack rows

Position

Reposition the module in the advanced tab as well.

  • Position: Absolute
  • Location: Top Left
  • Vertical Offset: 2%
  • Horizontal Offset: 2%

stack rows

Add Button Module to Column 1

Add Copy

The next and last module we need in column 1 is a Button Module. Add some copy of your choice.

stack rows

Button Settings

Move on to the module’s design tab and style the button accordingly:

  • Use Custom Styles For Button: Yes
  • Button Text Size: 20px
  • Button Text Color: #ffffff
  • Button Background Color: #83a5bf
  • Button Border Width: 0px
  • Button Border Radius: 1px
  • Button Font: Alata

stack rows

stack rows

Spacing

Add some custom padding values next.

  • Top Padding: 20px
  • Bottom Padding: 20px
  • Left Padding: 50px
  • Right Padding: 50px

stack rows

Position

And reposition the module in the advanced tab.

  • Position: Absolute
  • Location: Bottom Right

stack rows

Add Text Module #1 to Column 2

Add H3 Content

On to the second column. Add a first Text Module with some H3 content of your choice.

stack rows

H3 Text Settings

Move on to the module’s design tab and apply the following H3 text styles:

  • Heading 3 Font: Alata
  • Heading 3 Font Weight: Bold
  • Heading 3 Text Color: #ffffff
  • Heading 3 Text Size: 40px

stack rows

Add Divider Module to Column 2

Visibility

Below the first Text Module, we’ll add a Divider Module. Make sure the “Show Divider” option is enabled.

  • Show Divider: Yes

stack rows

Line Settings

Move on to the module’s design tab and change the line color.

  • Line Color: #f3f0ee

stack rows

Sizing

Modify the sizing settings too.

  • Divider Weight: 5px
  • Width: 19%
  • Height: 5px

stack rows

Spacing

And complete the module settings by adding some bottom margin to the spacing settings.

  • Bottom Margin: 20%

stack rows

Add Text Module #2 to Column 2

Add Content

Add another Text Module right below the Divider Module. Enter some description content of your choice.

stack rows

Text Settings

Style the module’s text accordingly:

  • Text Font: Montserrat
  • Text Color: #ffffff
  • Text Size:
    • Desktop: 15px
    • Tablet & Phone: 14px
  • Text Line Height: 2em

stack rows

2. Turn Row into Stacking Element

Row Settings

Z Index

Now that we have our first row in place, it’s time to apply the sticky row stacking settings. We’ll apply these settings before cloning our row for reuse so the stacking effect takes place automatically. Open the row settings, go to the advanced tab and apply a z index of 1. This z index will help us ensure that each next row is placed on top of the previous one.

  • Z Index: 1

stack rows

Sticky Settings

Then, we’ll go to the scroll effects settings and apply the following sticky settings:

  • Sticky Position:
    • Desktop: Stick to Top
    • Tablet & Phone: Do Not Stick
  • Bottom Sticky Limit: Section
  • Offset From Surrounding Sticky Elements: No

stack rows

3. Reuse Stacking Row in Same Section

Clone Row x3

Now that our sticky options have been applied, we can reuse the entire row up to as many times as we want.

stack rows

General Changes

Change All Copy

Make sure you change the copy in each duplicate

stack rows

Change Column 1 Background Colors & Images

Along with the column 1 background colors and images.

  • Duplicate 1: #edc1b6
  • Duplicate 2: #efe7e2
  • Duplicate 3: #f7f6f4

stack rows

stack rows

Change Column 2 Background Colors

We’re using different colors for the second column of each duplicate row as well.

  • Duplicate 1: #ffd1c1
  • Duplicate 2: #fff8f2
  • Duplicate 3: #fffaf7

stack rows

Change Button Background Colors

Next, we’ll change the button background colors in each duplicate row.

  • Duplicate 1: #c18a7a
  • Duplicate 2: #bab5b2
  • Duplicate 3: #c98f7d

stack rows

Changes to Rows with Light Background Colors

Change Text Colors

And last but not least, we’ll change the text color for each Text Module in the rows with a lighter background color. That’s it!

  • Text Color: #2b343b

stack rows

Preview

Now that we’ve gone through all the steps, let’s take a final look at the outcome across different screen sizes.

Desktop

stack rows

Mobile

stack rows

Final Thoughts

In this post, we’ve shown you how to get creative with Divi’s sticky options inside your page design. More specifically, we’ve shown you how to stack rows to create an appealing design and user experience. We’ve recreated a beautiful design example from scratch and you were able to download the JSON file for free as well! If you have any questions or suggestions, feel free to leave a comment in the comment section below.

If you’re eager to learn more about Divi and get more Divi freebies, make sure you subscribe to our email newsletter and YouTube channel so you’ll always be one of the first people to know and get benefits from this free content.

Divi Marketplace

Are You A Divi User? Find Out How To Get More From Divi! 👇

Browse hundreds of modules and thousands of layouts.

Visit Marketplace
Divi Marketplace
Divi Cloud

Find Out How To Improve Your Divi Workflow 👇

Learn about the new way to manage your Divi assets.

Get Divi Cloud
Divi Cloud
Divi Hosting

Want To Speed Up Your Divi Website? Find Out How 👇

Get fast WordPress hosting optimized for Divi.

Speed Up Divi
Divi Hosting
Premade Layouts

Check Out These Related Posts

New Starter Site for Estheticians (Quick Install)

New Starter Site for Estheticians (Quick Install)

Posted on November 12, 2024 in Divi Resources

Divi empowers you to build the best websites possible, and now, Divi Quick Sites takes website creation to a whole new level. This revolutionary tool lets anyone, regardless of skill level, generate a complete website in under two minutes! Divi Quick Sites provides everything you need to launch...

View Full Post
Divi 5 Update: Public Alpha Version 3

Divi 5 Update: Public Alpha Version 3

Posted on November 11, 2024 in Divi Resources

The Divi 5 Public Alpha is available for testing. As we progress towards the final release, we’ll update Divi 5 every two weeks, appearing as a standard update in your WordPress dashboard. If you use Divi 5, you’ll notice an update notification for Public Alpha Version 3 today. Thanks...

View Full Post

13 Comments

  1. Hi,
    Great effect! Can I have the same effect with sections

    • Yes- works with sections too 🙂

  2. Hi, i’m trying to use this layout. I’ve encountered two problems:
    1. I tried to import the layout into the page and i got the “This file could not be imported in this context.” error so i had to import it into the library but this not solved the problem The layout was nowhere to be found when i tried to import it from the library into the page. I succeded by opening the layout in the library for editing and then copy/paste the section in my page.
    2. The major problem with no solution by now is that, when scrolling, when the row is at the top of the page, the button becomes unsable. It’s active only when the row is not completely slided. If anyone got a solution for this, please help. Thanks.

    • Same problem here with the not clickable buttons. Did you find a solution?

  3. just tried to import the JSON file and get the following error: “This file could not be imported in this context.” This happens no matter how I try to import the file. Please advise?

    • I have the same problem…

  4. I wanted to see if I could import the layout using the page portability import. Instead the the layout importing I got an error: “This file could not be imported in this context”. Wha tam I doing wrong?

  5. I’m experiencing glitches after following step by step, and reviewing the tutorial. After cloning the rows and changing the background colors the title on the left in all the rows are not sticking like the rest of the rows content, no extra preferences have been set on the title.
    It must has something to do with the positioning but some setting seems to be conflicting with the intended behavior.
    Also when I view the page after publishing the scrolling glitches and I’m stuck viewing the first row. Only after using the mouse in the scrolling bar and dragging all the way to the bottom through the many glitches, it rests and behaves as intended in this tutorial.

    What gives? Using Macbook Pro w. Catalina and Chrome + Firefox.

    • Regarding my first post with glitches. The problem is gone when I switch off the “fixed navigation bar” in the general settings.

  6. Quite an addictive effect. looks great.

  7. I just changed the maximum line height to 90vh so that it displays better on small screens

  8. Hello,
    Works really well and gives a great effect!
    Thank you

    • I just changed the maximum line height to 90vh so that it displays better on small screens

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today