Creating websites is all about making sure every detail is right. Paying attention to small details in your design will quickly add up and elevate the quality of your website. With Divi’s new hover options, you can effortlessly add small interactions on your website. Hover options apply to almost all design settings. You can, for instance, indirectly change a gradient background on hover to create a nice transition. That’s exactly what we’re going to show you in this blog post. Apart from achieving the gradient transition, we’ll also create a stunning design example from scratch that you’re free to use for any kind of website you build.

Let’s get to it!

Preview

Before we dive into the tutorial, let’s take a quick look at the end result on different screen sizes.

Static

how-to-change-a-gradient-background-on-hover-with-divi How to Change a Gradient Background on Hover with Divi

Hover

how-to-change-a-gradient-background-on-hover-with-divi How to Change a Gradient Background on Hover with Divi

Download The Illustrations for FREE

To lay your hands on the free illustrations that originate from the Video Game Layout Pack, you will first need to download them 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 and Friday! 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.

You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!

Let’s Start Creating!

Add Section #1

Spacing

The first thing you will need to do is create a new page or open an existing one and add a new regular section to it. Open the settings and add some custom top and bottom margin.

  • Top Padding: 100px
  • Bottom Padding: 100px

how-to-change-a-gradient-background-on-hover-with-divi-1 How to Change a Gradient Background on Hover with Divi

Add Row #1

Column Structure

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

how-to-change-a-gradient-background-on-hover-with-divi-2 How to Change a Gradient Background on Hover with Divi

Column 1 Default Background Color

Without adding any modules yet, open the row settings and add the following default background color to column 1:

  • Background Color: #e7ffa0

how-to-change-a-gradient-background-on-hover-with-divi-3 How to Change a Gradient Background on Hover with Divi

Column 1 Hover Background Color

Change this background color on hover.

  • Background Color: #00020c

how-to-change-a-gradient-background-on-hover-with-divi-4 How to Change a Gradient Background on Hover with Divi

Column 1 Gradient Background

Add a gradient background color to column 1 as well. You’ll notice that we’re using one completely transparent color. This color will allow the background color to show through, which in its turn changes on hover.

  • Color 1: rgba(255,255,255,0)
  • Color 2: rgba(16,0,201,0.8)
  • Column 1 Gradient Type: Linear
  • Column 1 Gradient Direction: 50deg
  • Column 1 Start Position: 20%

how-to-change-a-gradient-background-on-hover-with-divi-5 How to Change a Gradient Background on Hover with Divi

Column 2 Background Color

Add a column 2 background color as well.

  • Column 2 Background Color: #ffffff

how-to-change-a-gradient-background-on-hover-with-divi-6 How to Change a Gradient Background on Hover with Divi

Sizing

Then, go to the design tab and change the sizing settings.

  • Use Custom Width: Yes
  • Unit: PX
  • Custom Width: 2000px
  • Use Custom Gutter Width: Yes
  • Gutter Width: 1

how-to-change-a-gradient-background-on-hover-with-divi-7 How to Change a Gradient Background on Hover with Divi

Spacing

Continue by adding some custom padding values in the spacing settings.

  • Top Padding: 0px
  • Bottom Padding: 0px
  • Column 2 Top Padding: 6vw (Desktop), 120px (Tablet & Phone)
  • Column 2 Bottom Padding: 6vw (Desktop), 120px (Tablet & Phone)
  • Column 2 Left Padding: 5vw (Desktop), 80px (Tablet), 50px (Phone)
  • Column 2 Right Padding: 5vw (Desktop), 80px (Tablet), 50px (Phone)

how-to-change-a-gradient-background-on-hover-with-divi-8 How to Change a Gradient Background on Hover with Divi

Box Shadow

And give the row a subtle box shadow as well.

  • Box Shadow Blur Strength: 100px
  • Box Shadow Spread Strength: -10px

how-to-change-a-gradient-background-on-hover-with-divi-9 How to Change a Gradient Background on Hover with Divi

Transitions

Last but not least, we’re going to create a smooth gradient background transition by increasing the transition duration in the advanced tab.

  • Transition Duration: 1100ms

how-to-change-a-gradient-background-on-hover-with-divi-10 How to Change a Gradient Background on Hover with Divi

Add Image Module to Column 1

Upload Image

Time to start adding modules! Add an Image Module to the first column and upload the ‘divi-gradient-background-on-hover-illustration-1.png‘ file which you can find in the zipped folder you’ve downloaded at the beginning of this post.

how-to-change-a-gradient-background-on-hover-with-divi-11 How to Change a Gradient Background on Hover with Divi

Gradient Background

Go to the background settings of this Image Module and add a gradient background. We’re again using one fully transparent color to allow the other colors to show through.

  • Color 1: rgba(50,217,255,0.66)
  • Color 2: rgba(255,255,255,0)
  • Gradient Type: Radial
  • Radial Direction: Top
  • End Position: 57%

how-to-change-a-gradient-background-on-hover-with-divi-12 How to Change a Gradient Background on Hover with Divi

Spacing

Then, add some custom top padding to the module.

  • Top Padding: 14vw

how-to-change-a-gradient-background-on-hover-with-divi-13 How to Change a Gradient Background on Hover with Divi

Add Title Text Module to Column 2

Add Content

On to the second column! The first module we’ll need there is a title Text Module. Go ahead and add some heading content of choice.

how-to-change-a-gradient-background-on-hover-with-divi-14 How to Change a Gradient Background on Hover with Divi

Heading Text Settings

Then, go to heading text settings and make some changes.

  • Heading Font: Abril Fatface
  • Heading Text Color: #000000
  • Heading Text Size: 4vw (Desktop), 60px (Tablet), 40px (Phone)

how-to-change-a-gradient-background-on-hover-with-divi-15 How to Change a Gradient Background on Hover with Divi

Add Description Text Module to Column 2

Add Content

The second module we’ll need is another Text Module. Add some content of choice.

how-to-change-a-gradient-background-on-hover-with-divi-16 How to Change a Gradient Background on Hover with Divi

Text Settings

Then, go to the text settings and change the text orientation.

  • Text Orientation: Justify

how-to-change-a-gradient-background-on-hover-with-divi-17 How to Change a Gradient Background on Hover with Divi

Sizing

Adjust the width in the sizing settings as well.

  • Width: 73% (Desktop), 100% (Tablet & Phone)

how-to-change-a-gradient-background-on-hover-with-divi-18 How to Change a Gradient Background on Hover with Divi

Spacing

Lastly, add some custom top and bottom margin to the module to create whitespace.

  • Top Margin: 2.5vw (Desktop), 50px (Tablet & Phone)
  • Bottom Margin: 2.5vw (Desktop), 50px (Tablet & Phone)

how-to-change-a-gradient-background-on-hover-with-divi-19 How to Change a Gradient Background on Hover with Divi

Add Button Module to Column 2

Add Copy

The third and last module we’ll need in the second column is a Button Module. Add some copy of your choice.

how-to-change-a-gradient-background-on-hover-with-divi-20 How to Change a Gradient Background on Hover with Divi

Button Settings

Modify the button settings next.

  • Use Custom Styles for Button: Yes
  • Button Text Size: 1.2vw (Desktop), 14px (Tablet & Phone)
  • Button Text Color: #ffffff
  • Gradient Color 1: #9ea6ff
  • Gradient Color 2: rgba(16,0,201,0.8)
  • Gradient Direction: 78deg
  • Button Border Width: 0px
  • Button Border Radius: 30px
  • Button Letter Spacing: -1px
  • Font Weight: Ultra Bold
  • Font Style: Uppercase

how-to-change-a-gradient-background-on-hover-with-divi-21 How to Change a Gradient Background on Hover with Divi

how-to-change-a-gradient-background-on-hover-with-divi-22 How to Change a Gradient Background on Hover with Divi

Spacing

Add some custom padding values as well.

  • Top Padding: 10px
  • Bottom Padding: 10px
  • Left Padding: 40px
  • Right Padding: 40px

how-to-change-a-gradient-background-on-hover-with-divi-23 How to Change a Gradient Background on Hover with Divi

Box Shadow

And apply a subtle box shadow to the button.

  • Box Shadow Blur Strength: 40px

how-to-change-a-gradient-background-on-hover-with-divi-24 How to Change a Gradient Background on Hover with Divi

Add Section #2

Spacing

Now that we’ve finished the first section, we’ll move on to the next. Add a new regular section using the following custom padding values:

  • Top Padding: 100px
  • Bottom Padding: 100px

how-to-change-a-gradient-background-on-hover-with-divi-25 How to Change a Gradient Background on Hover with Divi

Add Row #2

Column Structure

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

how-to-change-a-gradient-background-on-hover-with-divi-26 How to Change a Gradient Background on Hover with Divi

Column 1 Background Color

Without adding any modules yet, open the row settings and add the following background color to column 1:

  • Column 1 Background Color: #ffffff

how-to-change-a-gradient-background-on-hover-with-divi-27 How to Change a Gradient Background on Hover with Divi

Column 2 Default Background Color

Add the following background color to column 2.

  • Column 2 Background Color: #ffffff

how-to-change-a-gradient-background-on-hover-with-divi-28 How to Change a Gradient Background on Hover with Divi

Column 2 Hover Background Color

And change this background color on hover.

  • Column 2 Background Color: #3d02ff

how-to-change-a-gradient-background-on-hover-with-divi-29 How to Change a Gradient Background on Hover with Divi

Column 2 Gradient Background

Add a gradient background to the column as well.

  • Color 1: rgba(255,255,255,0)
  • Color 2: #ff7700
  • Column 2 Start Position: 20%

how-to-change-a-gradient-background-on-hover-with-divi-30 How to Change a Gradient Background on Hover with Divi

Sizing

Then, go to the sizing settings and make some changes.

  • Use Custom Width: Yes
  • Unit: PX
  • Custom Width: 2000px
  • Use Custom Gutter Width: Yes
  • Gutter Width: 1

how-to-change-a-gradient-background-on-hover-with-divi-31 How to Change a Gradient Background on Hover with Divi

Spacing

Continue by adding custom padding values in the spacing settings.

  • Top Padding: 0px
  • Bottom Padding: 0px
  • Column 1 Top Padding: 6vw (Desktop), 120px (Tablet & Phone)
  • Column 1 Bottom Padding: 6vw (Desktop), 120px (Tablet & Phone)
  • Column 1 Left Padding: 5vw (Desktop), 80px (Tablet), 50px (Phone)
  • Column 1 Right Padding: 5vw (Desktop), 80px (Tablet), 50px (Phone)

how-to-change-a-gradient-background-on-hover-with-divi-32 How to Change a Gradient Background on Hover with Divi

Box Shadow

And add a subtle box shadow to this row as well.

  • Box Shadow Blur Strength: 100px
  • Box Shadow Spread Strength: -10px

how-to-change-a-gradient-background-on-hover-with-divi-33 How to Change a Gradient Background on Hover with Divi

Transitions

Last but not least, create a smooth transition by increasing the transition duration in the advanced tab.

  • Transition Duration: 1100ms

how-to-change-a-gradient-background-on-hover-with-divi-34 How to Change a Gradient Background on Hover with Divi

Duplicate Text Modules & Button Module of Row #1

Since we already have all the modules we need in the previous section, we’re going to save time by cloning them.

how-to-change-a-gradient-background-on-hover-with-divi-35 How to Change a Gradient Background on Hover with Divi

Place Duplicates in Column 1 of Row #2

And placing the duplicates in the first column of the new row.

how-to-change-a-gradient-background-on-hover-with-divi-36 How to Change a Gradient Background on Hover with Divi

Change Content

Make sure you change the content of your modules.

how-to-change-a-gradient-background-on-hover-with-divi-37 How to Change a Gradient Background on Hover with Divi

Change Button Gradient Background

Change the button gradient background too.

  • Color 1: #ff653f
  • Color 2: #0066ff
  • Gradient Direction: 39deg

how-to-change-a-gradient-background-on-hover-with-divi-38 How to Change a Gradient Background on Hover with Divi

Clone Image Module of Row #2

Clone the Image Module you can find in the first column of the previous row as well.

how-to-change-a-gradient-background-on-hover-with-divi-39 How to Change a Gradient Background on Hover with Divi

Place Duplicate in Column 2 of Row #2

And place the duplicate in the second column of the new row.

how-to-change-a-gradient-background-on-hover-with-divi-40 How to Change a Gradient Background on Hover with Divi

Change Image

Change the image to the ‘divi-gradient-background-on-hover-illustration-2.png‘ file you can find in the zipped folder which you’ve downloaded at the beginning of this post.

how-to-change-a-gradient-background-on-hover-with-divi-41 How to Change a Gradient Background on Hover with Divi

Change Gradient Background

Last but not least, change the gradient background of the Image Module.

  • Color 1: rgba(0,2,12,0.66)
  • Color 2: rgba(255,255,255,0)
  • End Position: 57%

how-to-change-a-gradient-background-on-hover-with-divi-42 How to Change a Gradient Background on Hover with Divi

Preview

Now that we’ve gone through all steps, let’s take a final look at the end result on different screen sizes!

Static

how-to-change-a-gradient-background-on-hover-with-divi How to Change a Gradient Background on Hover with Divi

Hover

how-to-change-a-gradient-background-on-hover-with-divi How to Change a Gradient Background on Hover with Divi

Final Thoughts

In this post, we’ve shown you how to change a gradient background on hover using Divi. We’ve also created a stunning design example from scratch that uses this approach. You’re free to use the design and illustrations for any kind of website you’re building. If you have any questions or suggestions, make sure you leave a comment in the comment section below!

SEO News and More

SEO News and More

Share This