Using Divi’s Transform Options to Create Expanding Section Content on Hover

Last Updated on September 18, 2022 by 7 Comments

Using Divi’s Transform Options to Create Expanding Section Content on Hover
Blog / Divi Resources / Using Divi’s Transform Options to Create Expanding Section Content on Hover

Today, we’re going to highlight the transform scale design option that comes with Divi and its new transform options. More so, we’re going to recreate a stunning design that allows sections to expand on hover in an elegant way.

You can use this design for any kind of website you’re creating. It’ll help you share relevant content in a structured and minimal way.  At the end of this tutorial, you’ll be able to download the entire page layout for free.

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

expanding section content

Mobile

expanding section content

Let’s Start Recreating!

Add Section #1

Spacing

Start by creating a new page. Add your first regular section to the page, open the section settings and remove all default top and bottom padding in the spacing settings.

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

expanding section content

Add New Row

Column Structure

Continue by adding the first row using the following column structure:

expanding section content

Sizing

Without adding any modules yet, open the row settings and allow the row to take up the entire width of the screen.

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Width: 100%
  • Max Width: 100%

Spacing

Remove all default top and bottom padding as well. We’re doing this to limit the space that will be taken up by the row and section.

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

expanding section content

Add Divider Module

Visibility

The only module we need in this row is a Divider Module. At the end of this tutorial, we’ll transform the divider into a vertical one that’ll connect all upcoming sections. Once you’ve added the Divider Module, make sure the ‘Show Divider’ option is enabled.

  • Show Divider: Yes

expanding section content

Color

Then, go to the design tab and change the color of the divider into black.

  • Color: #000000

expanding section content

Sizing

Modify the sizing values as well.

  • Divider Weight: 1px
  • Height: 0px

expanding section content

Spacing

And increase the length of the divider by adding some negative left and right margins.

  • Left Margin: -135vw (Desktop), -300vw (Tablet), -340vw (Phone)
  • Right Margin: -135vw (Desktop), -300vw (Tablet), -340vw (Phone)

expanding section content

Add Section #2

Background Color

On to the next regular section! Once you’ve added the new section, open the section settings and add an entirely white background color.

  • Background Color: #ffffff

expanding section content

Spacing

Then, go to the spacing settings and add some custom top and bottom padding.

  • Top Padding: 5vw
  • Bottom Padding: 5vw

expanding section content

Default Border

Add a border to the section as well.

  • Border Width: 1px
  • Border Color: #000000

expanding section content

Hover Border

And remove the border width on hover.

  • Border Width: 0px

expanding section content

Default Box Shadow

We’re also adding a box shadow on hover. To do that, we’ll need to add a default one first. To make sure the box shadow doesn’t show up by default, we’re using an entirely transparent shadow color.

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

expanding section content

Hover Box Shadow

Change the shadow color on hover using the following color code:

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

expanding section content

Add Row #1

Column Structure

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

expanding section content

Sizing

Without adding any modules yet, open the row settings and allow the row to take up the entire width of the section.

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Width: 100%
  • Max Width: 100%

Add Text Module

Add H2 Content

Time to start adding modules! The first module we need is a Text Module with some H2 content.

expanding section content

H2 Text Settings

Go to the design tab and modify the H2 text settings according to your own preference.

  • Heading 2 Font: Abril Fatface
  • Heading 2 Text Alignment: Center
  • Heading 2 Text Color: #000000
  • Heading 2 Text Size: 7vw

expanding section content

Spacing

Add some custom margin values as well.

  • Bottom Margin: 5vw
  • Left Margin: 5vw
  • Right Margin: 5vw

expanding section content

Add Divider Module

Visibility

The next and last module we need in this row is a Divider Module. Make sure the ‘Show Divider’ option is enabled.

  • Show Divider: Yes

expanding section content

Color

Then, go to the design tab and change the divider color into black.

  • Color: #000000

expanding section content

Add Row #2

Column Structure

On to the second row! Use the following column structure:

expanding section content

Sizing

We’re, again, making sure the row takes up the entire width of the screen by modifying the sizing settings in the design tab.

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Width: 100%
  • Max Width: 100%

Spacing

We’re also slightly shrinking the size of the row by adding some custom left and right padding in the spacing settings.

  • Left Padding: 10vw
  • Right Padding: 10vw

expanding section content

Display

To make sure all three columns show up next to each other on smaller screen sizes, we’re going to add one single line of CSS code to the main element of the row.

display: flex;

expanding section content

Add Blurb Module to Column 1

Add Content

Continue by adding a Blurb Module to the first column of the row. Enter some content of your choice.

expanding section content

Select Icon

Select an icon next.

expanding section content

Icon Settings

Then, go to the design tab and change the icon color.

  • Icon Color: #000000

expanding section content

Title Text Settings

Move on to the title text settings and change the settings according to your own preference.

  • Title Font: Abril Fatface
  • Title Text Alignment: Center
  • Title Text Color: #000000
  • Title Text Size: 1.5vw (Desktop), 2.5vw (Tablet), 3.5vw (Phone)
  • Title Line Height: 2em

expanding section content

Body Text Settings

Do the same thing for the body text settings.

  • Body Font: Open Sans
  • Body Text Alignment: Center
  • Body Text Color: #666666
  • Body Text Size: 0.8vw (Desktop), 1.5vw (Tablet), 2vw (Phone)
  • Body Line Height: 2em

expanding section content

Spacing

Last but not least, add some custom left and right margin to the Blurb Module.

  • Left Margin: 2vw
  • Right Margin: 2vw

expanding section content

Clone Blurb Module Twice & Place in Remaining Columns

Once you’re done customizing the Blurb Module, you can go ahead and clone it twice. Place the duplicates in the two remaining columns of the row.

expanding section content

Add Row #3

Column Structure

On to the next and last row. Choose the following column structure for it:

expanding section content

Sizing

Without adding any modules yet, open the row settings and allow the row to take up the entire width of the section by modifying the sizing settings.

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Width: 100%
  • Max Width: 100%

Add Button Module

Add Content

The only module we need here is a Button Module. Add some copy of your choice.

expanding section content

Alignment

Then, go to the design tab and change the button alignment.

  • Button Alignment: Center

expanding section content

Button Settings

Change the button settings next.

  • Use Custom Styles for Button: Yes
  • Button Text Size: 1.5vw (Desktop), 2.5vw (Tablet & Phone)
  • Button Text Color: #000000
  • Button Border Width: 1px
  • Button Border Color: #000000
  • Button Border Radius: 1px
  • Button Font: Open Sans
  • Font Weight: Ultra Bold

expanding section content

expanding section content

Spacing

And create a shape for the button using some custom margin and padding values.

  • Top Margin: 5vw
  • Top Padding: 2vw
  • Bottom Padding: 2vw
  • Left Padding: 10vw
  • Right Padding: 10vw

expanding section content

Add Transform Settings to Section #2

Add Default Transform Scale to Section #2

Now that we’re done creating and modifying the two sections we’ve added to our page, we can start applying the transform options. Open section #2 and add some custom transform scale values.

  • Bottom: 60% (Desktop), 90% (Tablet & Phone)
  • Right: 60% (Desktop), 90% (Tablet & Phone)

expanding section content

Hover Transform Scale to Section #2

Modify these values on hover. Notice how we’re using the same value as we did for smaller screen sizes. Doing this will make sure the hover effect will only take place on larger screen sizes.

  • Bottom: 90%
  • Right: 90%

expanding section content

Clone Section Twice

Then, clone the second section twice (or up to as many times as you want).

expanding section content

Add Transform Rotate to Divider Module in Section #1

And transform the divider you’ve added to the first section by playing around with the transform rotate value.

  • Left: 90deg

expanding section content

Download The Expanding Section Layout for FREE

To lay your hands on the expanding section 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.

Preview

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

Desktop

expanding section content

Mobile

expanding section content

Final Thoughts

In this tutorial, we’ve highlighted the transform scale option that comes with Divi’s new transform options. On top of that, we’ve recreated a stunning design that allows the hover effect to make sense and enhance the overall user experience people have when visiting the page. At the end of the tutorial, you were also able to download the entire layout for free. If you have any question or suggestions, feel free to leave a comment in the comment section below!

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

Get a Free Augmented Reality Layout Pack for Divi

Get a Free Augmented Reality Layout Pack for Divi

Posted on March 25, 2024 in Divi Resources

Hey Divi Nation! Thanks for joining us for the next installment of our weekly Divi Design Initiative; where each week, we give away a brand new Layout Pack for Divi. This time around, the design team has created a beautiful Augmented Reality Layout Pack that’ll help you get your next Augmented...

View Full Post
Download a Free Webinar Theme Builder Pack for Divi

Download a Free Webinar Theme Builder Pack for Divi

Posted on March 22, 2024 in Divi Resources

It’s time for another freebie! This time, we’re giving you a free Theme Builder Pack for Divi. Combining these with our beloved Divi Layout Packs is a great way to build the Divi website of your dreams with ease. This week, the design team has created a beautiful Webinar Theme Builder...

View Full Post
Get a Free Modeling Agency Layout Pack for Divi

Get a Free Modeling Agency Layout Pack for Divi

Updated on March 21, 2024 in Divi Resources

Hey Divi Nation! Thanks for joining us for the next installment of our weekly Divi Design Initiative; where each week, we give away a brand new Layout Pack for Divi. This time around, the design team has created a beautiful Modeling Agency Layout Pack that’ll help you get your next Modeling...

View Full Post

7 Comments

  1. Thank you for this tutorial. I can do many things using this transform technique. I had some difficulty with getting the vertical divider to display. The tutorial specifies a 100% width for the container row. When I finally downloaded the layout pack, I found that the container row in the layout pack was set to auto. When I changed the row on the page I created following the tutorial to auto, it worked. So it seems the layout pack is right but there’s one error in the instructions. Thought you’d like to know.

  2. Amazing feature and layout provided by the Divi, all the designs are device friendly and compatible with device like Tablet, Desktop and mobile…

  3. I love these tutorials, thank you!! And so detailed! But why aren’t there demos on the page? I know there are gifs, but a working, live demo would be great. Just wondering.

  4. I like that there is a lot of tutorials on the transform function.

    Please, could you add some more complex one for us?

  5. @Ashish Kumar how true is this?

    There are a lot of amazing new features. These are really essential to achieve a perfect layout with ease. I would love to try it out so I can get a clean and beautiful design.

  6. Hello,
    Good tutorial, as always.
    I had a problem displaying the separator.
    But I found the error by downloading the files.
    Thank you

  7. Wow, There are a lot of amazing new features. These are really essential to achieve a perfect layout with ease. I would love to try it out so I can get a clean and beautiful design.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today