How to Reveal Images Using Horizontal Hover Grids & Hidden Overflow with Divi

Last Updated on September 16, 2022 by 4 Comments

How to Reveal Images Using Horizontal Hover Grids & Hidden Overflow with Divi
Blog / Divi Resources / How to Reveal Images Using Horizontal Hover Grids & Hidden Overflow with Divi
Play Button

Since Divi and its new sizing options have come out, weโ€™ve created a few tutorials that show you how to create hover reveals. In those tutorials, the hidden content was placed vertically. In some cases, however, you might want to create a horizontal reveal instead. In this post, weโ€™re going to show you how to reveal images using hover grids and Diviโ€™s overflow options. Making this work asks for a slightly different approach. Weโ€™ll use a one-column row and place all modules below each other and on hover, weโ€™ll transform the column into a horizontal grid. 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

hover grids

Mobile

hover grids

Download The Hover Grids Layout for FREE

To lay your hands on the free hover grids 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.

Letโ€™s Start Recreating!

Subscribe To Our Youtube Channel

Add New Section

Start by adding a new regular section to the page youโ€™re working on.

hover grids

Add New Row

Column Structure

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

hover grids

Default Gradient Background

Without adding any modules yet, open the row settings and add the following gradient background:

  • Color 1: #b1ffc4
  • Color 2: #ffffff
  • Gradient Type: Radial
  • Radial Direction: Center
  • Start Position: 28%
  • End Position: 28%

hover grids

Hover Gradient Background

Change the gradient background on hover.

  • Color 1: #b1ffc4
  • Color 2: #ffffff
  • Gradient Type: Radial
  • Radial Direction: Left
  • Start Position: 5%
  • End Position: 5%

hover grids

Spacing

Move on to the spacing settings and change the padding and margin values next.

  • Top Padding: 0px
  • Bottom Padding: 0px
  • Top Margin: 50px
  • Bottom Margin: 50px

hover grids

Default Border

Add โ€™50pxโ€™ border radius to the top right and bottom right corners next.

hover grids

Hover Border

Bring back the corners to โ€˜0pxโ€™ on hover.

hover grids

Default Box Shadow

Add a subtle box shadow next using the following settings:

  • Box Shadow Blur Strength: 50px
  • Shadow Color: rgba(0,0,0,0.09)

hover grids

Hover Box Shadow

Remove the box shadow on hover by replacing the shadow color with a completely transparent one.

  • Shadow Color: rgba(0,0,0,0)

hover grids

Add Text Module to Column

Add H2 Content

Time to start adding modules, starting with a Text Module. Enter some H2 content of your choice.

hover grids

H2 Text Settings

Move on to the design tab and change the H2 text settings accordingly:

  • Heading 2 Font: Acme
  • Heading 2 Font Style: Underline
  • Heading 2 Underline Color: #00ff3f
  • Heading 2 Text Color: #000000
  • Heading 2 Text Size: 3vw

hover grids

Spacing

Add some custom padding values next.

  • Top Padding: 6vw
  • Bottom Padding: 7vw
  • Left Padding: 2vw

hover grids

Add Image Module to Column

Upload Image

The second module we need in this column is an Image Module. Upload a landscape image of your choice.

hover grids

Lightbox

Enable the lightbox option in the link settings next.

  • Open in Lightbox: Yes

hover grids

Sizing

And force fullwidth on the image in the sizing settings. This will make sure the image remains responsive across all screen sizes.

  • Force Fullwidth: Yes

hover grids

Clone Image Module Twice

Once youโ€™ve completed the first Image Module, you can go ahead and clone it twice.

hover grids

Change Images

Change the images in both duplicates. Make sure the images you upload have the same dimension set as the first image.

hover grids

Add Hover Effect to Row

Sizing

Now that weโ€™ve completed the basic row and module settings, itโ€™s time to make the hover effect happen! Weโ€™ll start by modifying the height and width of the row and hiding the overflows. Open the rowโ€™s sizing settings and make the following changes:

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Width: 20%
  • Max Width: 100%
  • Height: 15.9vw

hover grids

Hover Sizing

Bring back the width to โ€˜100%โ€™ on hover. This will allow the images to show up once the row is hovered.

  • Width: 100%

hover grids

Visibility

Move on to the advanced tab next and hide the overflows. This will make sure the images are hidden before visitors hover (desktop) or click (tablet/mobile) on the Text Module.

  • Horizontal Overflow: Hidden
  • Vertical Overflow: Hidden

hover grids

Transitions

Weโ€™re also changing the transition duration in the transitions settings.

  • Transition Duration: 0ms

hover grids

Column Hover Main Element

To create a grid on hover, weโ€™re going to open the column settings, go to the advanced tab and place the following lines of CSS code in the hover main element:

display: grid;
grid-template-columns: 20% 25% 25% 25%;
grid-gap: 10px;

hover grids

hover grids

Clone Row Twice

Once youโ€™ve completed the first row, you can clone it up to as many times as you want. For this particular design example, weโ€™re cloning the row twice.

hover grids

Change Duplicate Row #1 Gradient Background

Change the first gradient color of the second rowโ€™s gradient background.

  • Color 1: #ffdc96

hover grids

Change Duplicate Row #2 Gradient Background

Do the same for the third row.

  • Color 1: #b7c7ff

hover grids

Change Text Module Copy & Underline Color of Both Duplicates

Continue by modifying the underline color of both Text Module duplicates along with the copy and youโ€™re done!

  • Underline Color #1: #ffaa00
  • Underline Color #2: #0037ff

hover grids

hover grids

Preview

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

Desktop

hover grids

Mobile

hover grids

Final Thoughts

In this post, weโ€™ve shown you how to reveal images in horizontal hover grids using Diviโ€™s overflow options. The images were revealed once hovered on deskop and clicked on tablet/phone. Although we revealed images, you can reveal any kind of content you want by tweaking the settings inside the builder. We hope this tutorial inspires you to create your own alternative hover grid designs as well! If you have any questions or suggestions, make sure you 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

4 Comments

  1. Really good !
    Thank you for sharing

    • You’re welcome, Bruno! Thanks for dropping by in the comment section. ๐Ÿ™‚

  2. thank you.. very nice and awesome design

    • You’re welcome, glad you like it! ๐Ÿ™‚

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today