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.
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 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.
Join the Divi Newsletter and we will email you a copy of the ultimate Divi Landing Page Layout Pack, plus tons of other amazing and free Divi resources, tips and tricks. Follow along and you will be a Divi master in no time. If you are already subscribed simply type in your email address below and click download to access the layout pack.
You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!
1. Create Design Structure
Add New Section
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.
Move on to the section’s design tab and change the spacing values as follows:
Continue by adding a new row using the following column structure:
Remove all default top and bottom padding next.
Then, open the column 1 settings and change the spacing settings as follows:
Next, open the column 2 settings and upload a background image of your choice.
To make sure this works on smaller screen sizes, we’ll hide the second column in the advanced tab for tablet and phone.
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.
H1 Text Settings
Move on to the module’s design tab and change the H1 text settings as follows:
Add Divider Module to Column 1
Modify the sizing settings too.
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.
Text Settings
Change the module’s text settings as follows:
Add Row #2
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:
Background Color
Next, we’ll add a background color.
Along with the spacing settings.
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.
Move on to the module’s design tab and change the bottom margin as follows:
Add Divider Module to Column 1
Change the sizing settings too.
Add Text Module to Column 1
Add H2 Content
Then, add a Text Module with some H2 content of your choice.
H2 Text Settings
Modify the H2 text settings as follows:
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.
Text Settings
Change the module’s text settings as follows:
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.
Row #2
Change the second row’s z index too. This value needs to be higher than the first row’s.
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.
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 Transform Skew
Then, navigate to the design tab and apply the following sticky skew value:
Column 2 Sticky Settings
Sticky Transform Skew
On to column 2, there, we’ll use the same sticky skew value in the transform settings.
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.
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.
This content was originally published here.