How to Cover Your Hero Section on Scroll with Divi’s Sticky Options

Last Updated on September 16, 2022 by 1 Comment

How to Cover Your Hero Section on Scroll with Divi’s Sticky Options
Blog / Divi Resources / How to Cover Your Hero Section on Scroll with Divi’s Sticky Options

If you’re currently working on your website’s hero design inside Divi, you might be looking for some interesting ways to add an effect on scroll. With Divi’s sticky options, a ton of design possibilities are possible. In today’s tutorial, we’ll highlight one of those possibilities. We’ll show you, step by step, how to cover your section on scroll while applying effortless sticky styles to it as well. In the first part of the tutorial, we’ll focus on creating the design, and in part two we’ll move on to the sticky settings that are needed! You’ll be able to download the 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

cover hero section

Mobile

cover hero section

Download The Layout for FREE

To lay your hands on the free 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 Design Structure

Add New Section

Background Color

In the first part of the tutorial, we’ll focus on creating the design. In part two, we’ll apply the sticky effects. Create a new page or open an existing one and add a new section to it. Open the section settings and apply a background color.

  • Background Color: rgba(53,44,43,0.17)

cover hero section

Spacing

Move on to the section’s design tab and change the spacing values as follows:

  • Top Padding: 13vh
  • Bottom Padding: 0px

cover hero section

Add Row #1

Column Structure

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

cover hero section

Sizing

Without adding modules to it, open the row settings, move on to the design tab and change the sizing settings accordingly:

  • Use Custom Gutter Width: Yes
  • Gutter Width: 2
  • Equalize Column Heights: Yes
  • Width:
    • Desktop: 80%
    • Tablet & Phone: 90%
  • Max Width: 2580px

cover hero section

Spacing

Remove all default top and bottom padding next.

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

cover hero section

Column 1 Settings

Spacing

Then, open the column 1 settings and change the spacing settings as follows:

  • Top Padding:
    • Desktop: 25vh
    • Tablet & Phone: 10vh
  • Bottom Padding:
    • Desktop: 25vh
    • Tablet & Phone: 10vh
  • Left Padding: 5%
  • Right Padding: 5%

cover hero section

cover hero section

Column 2 Settings

Background Image

Next, open the column 2 settings and upload a background image of your choice.

  • Background Image Size: Cover
  • Background Image Position: Center

cover hero section

cover hero section

Visibility

To make sure this works on smaller screen sizes, we’ll hide the second column in the advanced tab for tablet and phone.

cover hero section

Add Text Module #1 to Column 1

Add H1 Content

Time to add modules, starting with a first Text Module in column 1. Add some H1 content of your choice.

cover hero section

H1 Text Settings

Move on to the module’s design tab and change the H1 text settings as follows:

  • Heading Font: Crimson Text
  • Heading Text Size:
    • Desktop: 6vh
    • Tablet: 50px
    • Phone: 40px
  • Heading Line Height: 1.2em

cover hero section

Add Divider Module to Column 1

Visibility

Next, we’ll add a Divider Module to column 1. Make sure the “Show Divider” option is enabled.

  • Show Divider: Yes

cover hero section

Line

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

  • Line Color: #35241f

cover hero section

Sizing

Modify the sizing settings too.

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

cover hero section

Add Text Module #2 to Column 1

Add Description Content

The next and last module we need in column 1 is another Text Module. Add some description content of your choice.

cover hero section

Text Settings

Change the module’s text settings as follows:

  • Text Font: Karla
  • Text Size: 18px
  • Text Line Height: 2.1em

cover hero section

Add Row #2

Column Structure

To make this effect work, it’s important that you include a new row below the first one, inside the same section. This row will need a background color and enough height and width so the first row can fit below it. For this design, we’re using the following column structure:

cover hero section

Background Color

Next, we’ll add a background color.

  • Background Color: #35241f

cover hero section

Sizing

We’re modifying the sizing settings too.

  • Width: 100%
  • Max Width: 3000px

cover hero section

Spacing

Along with the spacing settings.

  • Top Padding:
    • Desktop: 30vh
    • Tablet & Phone: 0vh
  • Bottom Padding: 30vh
  • Left Padding: 10%
  • Right Padding: 10%

cover hero section

Add Image Module to Column 1

Upload Image (Tablet & Phone Only)

Then, we’ll add an Image Module to the first column. This module will replace the image that’s used inside the first row on smaller screen sizes. Use an image for tablet and phone only.

cover hero section

Spacing

Move on to the module’s design tab and change the bottom margin as follows:

  • Bottom Margin:
    • Desktop: 0px
    • Tablet & Phone: 50px

cover hero section

Add Divider Module to Column 1

Visibility

Then, add a Divider Module below the Image Module and make sure the “Show Divider” option is enabled.

  • Show Divider: Yes

cover hero section

Line

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

  • Line Color: #ffffff

cover hero section

Sizing

Change the sizing settings too.

  • Divider Weight: 5px
  • Height: 5px

cover hero section

Add Text Module to Column 1

Add H2 Content

Then, add a Text Module with some H2 content of your choice.

cover hero section

H2 Text Settings

Modify the H2 text settings as follows:

  • Heading 2 Font: Crimson Text
  • Heading 2 Text Color: #ffffff
  • Heading 2 Text Size:
    • Desktop: 6vh
    • Tablet: 50px
    • Phone: 40px

cover hero section

Add Text Module to Column 2

Add Description Content

In column 2, the only module we need is a Text Module with some description content.

cover hero section

Text Settings

Change the module’s text settings as follows:

  • Text Font: Karla
  • Text Font Weight: Ultra Light
  • Text Size:
    • Desktop: 30px
    • Tablet & Phone: 18px
  • Text Line Height: 2.2em
  • Text Color: Light

cover hero section

2. Apply Sticky Effects

Change Row Z Index Values

Row #1

Now that we’ve set up the foundation of our design, we can focus on some additional steps needed to create the hero cover effect. Start by opening the first row’s settings and change the z index in the advanced tab.

  • Z Index: 1

cover hero section

Row #2

Change the second row’s z index too. This value needs to be higher than the first row’s.

  • Z Index: 2

cover hero section

Turn Row #1 Sticky

Next, open the first row’s settings again and apply a sticky effect to the advanced tab. It’s important that you make sure the bottom sticky limit is set to section.

  • Sticky Position: Stick to Top
  • Bottom Sticky Limit: Section
  • Offset From Surrounding Sticky Elements: Yes
  • Transition Default and Sticky Styles: Yes

cover hero section

Column 1 Sticky Settings

Sticky Background Color

Now that the row has been turned sticky, we can start applying some sticky styles to the child elements of the row. Start by opening the column 1 settings and apply the following sticky background color:

  • Sticky Background Color: #edeaea

cover hero section

cover hero section

Sticky Transform Skew

Then, navigate to the design tab and apply the following sticky skew value:

  • Sticky Bottom Skew: -4deg

cover hero section

Column 2 Sticky Settings

Sticky Transform Skew

On to column 2, there, we’ll use the same sticky skew value in the transform settings.

  • Sticky Bottom Skew: -4deg

cover hero section

cover hero section

Text Module Sticky Transform Skew (x2)

And we’ll complete the design and effect by changing the bottom skew to 4 deg for both Text Modules in column 1 in a sticky state. This will even out the negative sticky column skew value.

  • Sticky Bottom Skew: 4deg

cover hero section

Preview

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

Desktop

cover hero section

Mobile

cover hero section

Final Thoughts

In this tutorial, we’ve shown you how to get creative with your hero design inside Divi. More specifically, we’ve shown you how to cover your hero section on scroll and apply sticky styles to it at the same time! In the first part of the tutorial, we focused on creating the design, and in part two, we applied the sticky settings that were needed to achieve the effect. 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

1 Comment

  1. Very Good! =O

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today