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.
- 1 Preview
- 2 Download The Row Stacking Layout for FREE
- 3 Download For Free
- 4 You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!
- 5 1. Create First Row Concept
- 6 2. Turn Row into Stacking Element
- 7 3. Reuse Stacking Row in Same Section
- 8 Preview
- 9 Final Thoughts
Preview
Before we dive into the tutorial, let’s take a quick look at the outcome across different screen sizes.
Desktop
Mobile
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
Add New Row
Column Structure
Continue by adding a new row using the following column structure:
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
Spacing
Next, remove all default top and bottom padding.
- Top Padding: 0px
- Bottom Padding: 0px
Column 1 Settings
Background Color
Then, open the column 1 settings and apply a background color of your choice.
- Background Color: #2b343b
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
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%
Column 2 Settings
Background Color
Then, open the second column and use a background color there too.
- Background Color: #394751
Spacing
Along with some custom padding values.
- Top Padding: 13%
- Bottom Padding: 13%
- Left Padding: 8%
- Right Padding: 8%
Box Shadow
And a box shadow.
- Box Shadow Vertical Position: 20px
- Box Shadow Blur Strength: 50px
- Shadow Color: rgba(0,0,0,0.14)
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.
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
Position
Reposition the module in the advanced tab as well.
- Position: Absolute
- Location: Top Left
- Vertical Offset: 2%
- Horizontal Offset: 2%
Add Copy
The next and last module we need in column 1 is a Button Module. Add some copy of your choice.
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
Spacing
Add some custom padding values next.
- Top Padding: 20px
- Bottom Padding: 20px
- Left Padding: 50px
- Right Padding: 50px
Position
And reposition the module in the advanced tab.
- Position: Absolute
- Location: Bottom Right
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.
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
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
Line Settings
Move on to the module’s design tab and change the line color.
- Line Color: #f3f0ee
Sizing
Modify the sizing settings too.
- Divider Weight: 5px
- Width: 19%
- Height: 5px
Spacing
And complete the module settings by adding some bottom margin to the spacing settings.
- Bottom Margin: 20%
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.
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
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
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
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.
General Changes
Change All Copy
Make sure you change the copy in each duplicate
Change Column 1 Background Colors & Images
Along with the column 1 background colors and images.
- Duplicate 1: #edc1b6
- Duplicate 2: #efe7e2
- Duplicate 3: #f7f6f4
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
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
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
Preview
Now that we’ve gone through all the steps, let’s take a final look at the outcome across different screen sizes.
Desktop
Mobile
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.
Hi,
Great effect! Can I have the same effect with sections
Yes- works with sections too 🙂
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?
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…
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?
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.
Quite an addictive effect. looks great.
I just changed the maximum line height to 90vh so that it displays better on small screens
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