Divi Tutorials + Layout Kits | WordPress Tips | Business Growth

Home of the Original Divi Tutorials & Divi Layout Kits.

Divi Tutorials + Layout Kits | WordPress Tips | Business Growth

Home of the Original Divi Tutorials & Divi Layout Kits.

I started a series on adding some spice to the Divi Blurb Module and it it has been a lot of fun.

So in this tutorial I am going to show you how you can make your Blurb float upwards with a cool radial shadow below it when you hover anywhere over the blurb.

View The Live Demo

Let’s Get Started

 

Creating the Modules

The first thing we are going to do is create a 3 column row. You can use other column options but I think 3 is the perfect layout for this feature.

1. In the section you want to add the modules, create a new 3-column row

 

2. Next you will add a blurb module in the first column.

 

3. Open up the blurb settings and give it a title, url and an Icon. You could use an image if you wanted to but in this tutorial I will stick with the icons.

 

4. Give the icon a color, Image Placement is on the top, turn off animation and add content.

 

5. Now open up the “Custom CSS” tab and give the blurb module the following class: mp_m_blurb_float_shadow

 

6. Select “Save and Exit” and then clone the blurb module twice and then move the extra two over into the next two columns. That way you only have to change the title, image and content on the other two.

 

 

 

Adding The Custom 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>Custom CSS (which is located at the bottom of the first tab in Theme Options)

Add this CSS

 

/*------------------------------------------------*/
/*---------------[GQ BLURB FLOAT]-----------------*/
/*------------------------------------------------*/


	.mp_m_blurb_float_shadow {
    		border: 1px solid #eee;
		border-radius: 9px;
    		box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    		padding: 17px;
    		-webkit-transition: all .3s ease-out;
    		-moz-transition: all 0.3s ease-out;
    		-ms-transition: all 0.3s ease-out;
    		-o-transition: all 0.3s ease-out;
    		transition: all 0.3s ease-out;}

	.mp_m_blurb_float_shadow:before {
    		pointer-events: none;
    		position: absolute;
    		z-index: -1;
    		content: '';
    		top: 100%;
    		left: 5%;
    		height: 10px;
    		width: 90%;
    		opacity: 0;
    		background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);
    		background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);
    		-webkit-transition: all .3s ease-out;
    		-moz-transition: all 0.3s ease-out;
    		-ms-transition: all 0.3s ease-out;
    		-o-transition: all 0.3s ease-out;
    		transition: all 0.3s ease-out;}

	.mp_m_blurb_float_shadow:hover {
    		-webkit-transform: translateY(-7px);
    		transform: translateY(-7px);
		box-shadow: 0px 8px 14px rgba(0, 0, 0, 0.2);}

	.mp_m_blurb_float_shadow:hover:before {
		opacity:1;
		top: 106%;
    		height: 15px;}

 

If you want to speed up the animation process, just decrease the animation speed.

 

If you want to have the blurb float higher or lower, just adjust the hover transform: translateY

 

And that’s it.

If you used this one one of your projects, please share a link below so we can see how you used it.

Have fun!


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


The following two tabs change content below.
Geno is an entrepreneur who has been designing websites since 1996. He also enjoys all things design, traveling, hanging out with friends, encouraging other believers, and experimenting with new technologies. When not doing any of the above, you can find Geno blogging or writing Divi customization tutorials here on Quiroz.co.

©2012-2018 Geno Quiroz | Teach Learn Build Love | Divi Expert ServicesJohn 3:16

Divi is a registered trademark of Elegant Themes, Inc. This website is not affiliated with nor endorsed by Elegant Themes.

STAY RELEVANT | BE INFORMED | SIGN UP NOW

IT DOES NOT TAKE LONG TO GET LEFT BEHIND!

You have Successfully Subscribed!

Pin It on Pinterest