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

gradient background on hover

Hover

gradient background on hover

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.

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

gradient background on hover

Add Row #1

Column Structure

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

gradient background on hover

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

gradient background on hover

Column 1 Hover Background Color

Change this background color on hover.

  • Background Color: #00020c

gradient background on hover

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%

gradient background on hover

Column 2 Background Color

Add a column 2 background color as well.

  • Column 2 Background Color: #ffffff

gradient background on hover

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

gradient background on hover

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)

gradient background on hover

Box Shadow

And give the row a subtle box shadow as well.

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

gradient background on hover

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

gradient background on hover

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.

gradient background on hover

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%

gradient background on hover

Spacing

Then, add some custom top padding to the module.

  • Top Padding: 14vw

gradient background on hover

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.

gradient background on hover

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)

gradient background on hover

Add Description Text Module to Column 2

Add Content

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

gradient background on hover

Text Settings

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

  • Text Orientation: Justify

gradient background on hover

Sizing

Adjust the width in the sizing settings as well.

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

gradient background on hover

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)

gradient background on hover

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.

gradient background on hover

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

gradient background on hover

gradient background on hover

Spacing

Add some custom padding values as well.

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

gradient background on hover

Box Shadow

And apply a subtle box shadow to the button.

  • Box Shadow Blur Strength: 40px

gradient background on hover

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

gradient background on hover

Add Row #2

Column Structure

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

gradient background on hover

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

gradient background on hover

Column 2 Default Background Color

Add the following background color to column 2.

  • Column 2 Background Color: #ffffff

gradient background on hover

Column 2 Hover Background Color

And change this background color on hover.

  • Column 2 Background Color: #3d02ff

gradient background on hover

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%

gradient background on hover

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

gradient background on hover

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)

gradient background on hover

Box Shadow

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

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

gradient background on hover

Transitions

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

  • Transition Duration: 1100ms

gradient background on hover

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.

gradient background on hover

Place Duplicates in Column 1 of Row #2

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

gradient background on hover

Change Content

Make sure you change the content of your modules.

gradient background on hover

Change Button Gradient Background

Change the button gradient background too.

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

gradient background on hover

Clone Image Module of Row #2

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

gradient background on hover

Place Duplicate in Column 2 of Row #2

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

gradient background on hover

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.

gradient background on hover

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%

gradient background on hover

Preview

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

Static

Hover

gradient background on hover

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!

The post How to Change a Gradient Background on Hover with Divi appeared first on Elegant Themes Blog.