How to Change a Gradient Background on Hover with Divi

January 4, 2019

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

[youtube https://www.youtube.com/watch?v=-O6w6MrZF-Q?feature=oembed&w=719&h=404]

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 Theme Builder Layout

Hover

how-to-change-a-gradient-background-on-hover-with-divi Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

Spacing

Then, add some custom top padding to the module.

  • Top Padding: 14vw

how-to-change-a-gradient-background-on-hover-with-divi-13 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

how-to-change-a-gradient-background-on-hover-with-divi-22 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

Change Content

Make sure you change the content of your modules.

how-to-change-a-gradient-background-on-hover-with-divi-37 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

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 Theme Builder Layout

Hover

how-to-change-a-gradient-background-on-hover-with-divi Theme Builder Layout

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!

Share this article:
 

eHost-square-ad Theme Builder Layout

We’re listening.

Have something to say about this article? Share it with us on Facebook, Twitter or LinkedIn:

SHARE IT HERE:

Related Posts

inserting-special-characters-into-the-block-editor Theme Builder Layout

Inserting Special Characters Into the Block Editor

For users of the Classic WordPress editor who often needed to insert special characters into their posts, life was once simple. Click the “Ω” button in the editor to open a modal with a list of characters not found on a standard keyboard. The user then only needed to...

review-divi-business-course-by-divi-space Theme Builder Layout

Review: Divi Business Course by Divi Space

Divi Business Course is an 8-week course that teaches how to start and run a Divi web design business and take the business to 6 figures per year. The course is dripped over the 8 weeks and includes live coaching calls, a Facebook group, and lots of documents to help...

metrilo-for-woocommerce-an-overview-and-review Theme Builder Layout

Metrilo for WooCommerce: An Overview and Review

Metrilo for WooCommerce is a growth tool for ecommerce brands that combines in-depth data with customer retention strategies. Analytics tell you all about your marketing and sales efforts, and customer engagement tools maximize the customer experience and encourage...

Get ALL Your SEO, WordPress & Divi News

Join Our Daily Roundup

SEO News and More

SEO News and More

Subscribe ToThe Weekly SEO Trade News Updates

Get the latest SEO, SEM and SMM marketing intel, tips and tricks from one of the best SEO Gurus online. 

Every Tuesday morning we send out an aggregated email listing all new posts on SEO Trade News.

Excellent! Now check your email to confirm your subscription.