In this Divi tutorial we are going to show you how to create a cool hover effect on your Divi Modules with a little custom CSS.

This hover effect will simply enlarge the module and give it a box shadow when you mouse over it. We use this on the Testimonial Module and Blurb Module but using this same method, you will be able to do this in just about any other module as well.

You can check out the demo page here.

Lets Get Started

1. Open up your testimonial module or your blurb module and assign the following Custom CSS Class in the module settings: gq-module-hover

Divi Module Hover Effect

 

 

The Magic of CSS

Now lets start to dazzle things up a bit with some CSS.

If you are working with a child theme you can go to Appearance>Editor and open your stylesheet. If not, go to Appearance>Divi Theme Options>ePanel>Custom CSS (which is located at the bottom of the ePanel)

 


/*------------------------------------------------*/
/*-------------[TESTIMONIAL HOVER]----------------*/
/*--------------[BY GENO QUIROZ]------------------*/
/*------------------------------------------------*/


/* testimonials */
	.gq-module-hover {
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0);
		-webkit-transition: all 0.6s;
		transition: all 0.6s;}
	.gq-module-hover:hover {
    	-webkit-transform: scale(1.1, 1.1);
    	transform: scale(1.1, 1.1);
    	box-shadow: 1px 5px 14px rgba(0, 0, 0, 3);
		z-index: 1;}
		
		
/*------------------------------------------------*/		

 

Notes

The first rule is before you hover and the second rule is after you hover. If you want to play around with the shadow depth & shadow colors before and after hovers, just adjust the “box-shadow” elements.

And that’s it! Have fun!


Well that’s all for now. I hope you find this article useful.


DISCLOSURE: I may be an affiliate for some of the products that I recommend. If you purchase those items through my links I will earn a commission which helps cover the cost of the free resources we provide. If you ever have any questions about my affiliations, please do not hesitate to ask..

Pin It on Pinterest

STAY RELEVANT | BE INFORMED | SIGN UP NOW

IT DOES NOT TAKE LONG TO GET LEFT BEHIND!

You have Successfully Subscribed!