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

Oct 20, 2020 | Everything Divi for WordPress

Ever since Divi’s 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

how-to-stack-rows-on-scroll-with-divis-sticky-options How to Stack Rows on Scroll with Divi’s Sticky Options

Mobile

how-to-stack-rows-on-scroll-with-divis-sticky-options How to Stack Rows on Scroll with Divi’s Sticky Options

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 Divi Daily email list 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.

You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!

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

how-to-stack-rows-on-scroll-with-divis-sticky-options How to Stack Rows on Scroll with Divi’s Sticky Options

Add New Row

Column Structure

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-1 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-2 How to Stack Rows on Scroll with Divi’s Sticky Options

Spacing

Next, remove all default top and bottom padding.

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-3 How to Stack Rows on Scroll with Divi’s Sticky Options

Column 1 Settings

Background Color

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

  • Background Color: #2b343b

how-to-stack-rows-on-scroll-with-divis-sticky-options-4 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-5 How to Stack Rows on Scroll with Divi’s Sticky Options

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%

how-to-stack-rows-on-scroll-with-divis-sticky-options-6 How to Stack Rows on Scroll with Divi’s Sticky Options

Column 2 Settings

Background Color

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

  • Background Color: #394751

how-to-stack-rows-on-scroll-with-divis-sticky-options-7 How to Stack Rows on Scroll with Divi’s Sticky Options

Spacing

Along with some custom padding values.

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-8 How to Stack Rows on Scroll with Divi’s Sticky Options

Box Shadow

And a box shadow.

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-9 How to Stack Rows on Scroll with Divi’s Sticky Options

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.

how-to-stack-rows-on-scroll-with-divis-sticky-options-10 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-11 How to Stack Rows on Scroll with Divi’s Sticky Options

Position

Reposition the module in the advanced tab as well.

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-12 How to Stack Rows on Scroll with Divi’s Sticky Options

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.

how-to-stack-rows-on-scroll-with-divis-sticky-options-13 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-14 How to Stack Rows on Scroll with Divi’s Sticky Options

how-to-stack-rows-on-scroll-with-divis-sticky-options-15 How to Stack Rows on Scroll with Divi’s Sticky Options

Spacing

Add some custom padding values next.

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-16 How to Stack Rows on Scroll with Divi’s Sticky Options

Position

And reposition the module in the advanced tab.

  • Position: Absolute
  • Location: Bottom Right

how-to-stack-rows-on-scroll-with-divis-sticky-options-17 How to Stack Rows on Scroll with Divi’s Sticky Options

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.

how-to-stack-rows-on-scroll-with-divis-sticky-options-18 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-19 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-20 How to Stack Rows on Scroll with Divi’s Sticky Options

Line Settings

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

  • Line Color: #f3f0ee

how-to-stack-rows-on-scroll-with-divis-sticky-options-21 How to Stack Rows on Scroll with Divi’s Sticky Options

Sizing

Modify the sizing settings too.

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-22 How to Stack Rows on Scroll with Divi’s Sticky Options

Spacing

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

  • Bottom Margin: 20%

how-to-stack-rows-on-scroll-with-divis-sticky-options-23 How to Stack Rows on Scroll with Divi’s Sticky Options

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.

how-to-stack-rows-on-scroll-with-divis-sticky-options-24 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-25 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-26 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-27 How to Stack Rows on Scroll with Divi’s Sticky Options

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.

how-to-stack-rows-on-scroll-with-divis-sticky-options-28 How to Stack Rows on Scroll with Divi’s Sticky Options

General Changes

Change All Copy

Make sure you change the copy in each duplicate

how-to-stack-rows-on-scroll-with-divis-sticky-options-29 How to Stack Rows on Scroll with Divi’s Sticky Options

Change Column 1 Background Colors & Images

Along with the column 1 background colors and images.

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-30 How to Stack Rows on Scroll with Divi’s Sticky Options

how-to-stack-rows-on-scroll-with-divis-sticky-options-31 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-32 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-33 How to Stack Rows on Scroll with Divi’s Sticky Options

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

how-to-stack-rows-on-scroll-with-divis-sticky-options-34 How to Stack Rows on Scroll with Divi’s Sticky Options

Preview

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

Desktop

how-to-stack-rows-on-scroll-with-divis-sticky-options How to Stack Rows on Scroll with Divi’s Sticky Options

Mobile

how-to-stack-rows-on-scroll-with-divis-sticky-options How to Stack Rows on Scroll with Divi’s Sticky Options

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.


Source

We’re listening.

Have something to say about this article? Share it with us on Facebook, Twitter or LinkedIn:

SHARE IT HERE:

Subscribe ToThe Weekly SEO Trade News Updates

Get the latest SEO, SEM and SMM marketing intel, tips and tricks from one of the best SEO Gurus online. 

Every Tuesday morning we send out an aggregated email listing all new posts on SEO Trade News.

Excellent! Now check your email to confirm your subscription.