How to Reveal an Underlying Image Grid in Your Hero with Divi’s Sticky Options | Elegant Themes Blog

Creating a hero section that catches your visitors’ attention can set the tone for the rest of the website. If you’re looking for a creative way to use Divi’s sticky options to help you get there, you’ll love this tutorial. Today, we’re showing you how to reveal an underlying image grid in your hero with Divi’s sticky options. We’re including a very smooth transition from default to sticky and 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 Hero Design

Start by adding a new section to the page you’re working on. Open the section settings and add a background color.

Go to the section’s design tab and add some bottom padding. This bottom padding will give us enough space to create the scrolling experience.

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

Add some responsive top margin next.

Z Index

And to make sure this row stays below the second row we’ll add to this section, later on, we’re going to use a z index of 10 in the advanced tab.

All Column Settings

Once the general row settings are done, open each one of the columns individually.

Main Element CSS

In each one of the columns, apply the following lines of CSS code to the main element on phone:

Phone only:

Column 2 Settings

Then, open the column 2 settings.

And increase the Z Index to 12. This will put this column above the third column.

Add Image Module to Column 1

Upload Image

Time to add modules, starting with an Image Module in column 1. Upload an image of your choice.

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

Clone Image Module Three Times & Place Duplicates in Remaining Columns

Once you’ve completed the module settings, you can clone the entire module three times and place the duplicates in the remaining columns of the row.

Change Images

Make sure you change the image in each duplicate module.

Change Image Module #2 & #4 Spacing

Then, open the settings of the Image Modules in column 2 and 4, and apply the following spacing values to them:

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

Gradient Background

Open the row settings and apply the following gradient background:

To place this row on top of the image grid, we’re going to use the position settings accordingly:

Add Text Module to Column

Add H1 Content

Add a first Text Module to this row using some H1 content of your choice.

H1 Text Settings

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

Modify the sizing settings next.

Add Button Module to Column

Add Copy

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

Button Alignment

Move on to the design tab and change the button alignment.

Button Settings

Then, style the button.

reveal image grid

And use some responsive padding values in the spacing settings.

2. Apply Sticky Settings

Turn Row #1 Sticky

Now that we have all the elements in place, we can focus on the sticky settings. Open the first row’s settings and apply the following sticky settings:

Sticky Opacity

Then, change the opacity in the filters settings.

Image Module #1 Sticky Settings

Image Module #2 Sticky Spacing

Image Module #3 Sticky Spacing

Image Module #4 Sticky Spacing

In this post, we’ve shown you how to get creative with your hero section in Divi. More specifically, we’ve shown you how to reveal an image grid on scroll using Divi’s sticky sections. 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.