Simple and Attractive Hover Effects in Divi
Last week I shared with you an About Me Page Layout. If you havenât seen it yet, you can check it out here! And while youâre at it, look closely at the hover effects Iâve applied in the layout.
Today, I will show you how to achieve these hover effects with simple CSS code snippets. You can watch the video to see how to apply these hover effects to your Divi-based website. And you can find the CSS code and short explanations in the tutorial below. So letâs hover!
1. Divi Button hover effect
There is a lot you can do in terms of button hover effects and thatâs probably something I should discuss in a separate article. But here weâre going to make two specific changes: weâll subtly increase the size of the button and add a shadow to make a fun 3d effect!
When you hover over it, the button grows bigger and looms closer, like itâs jumping over the background.
You can apply this CSS to any module, because making it bigger and adding a subtle box-shadow on hover is always nice.
![](https://divilover.com/wp-content/uploads/2018/09/button_min.gif)
.dl-hover-grow:hover {
transform:scale(1.05) translateY(-3px);
box-shadow:1px 15px 35px -10px rgba(0,0,0,0.4);
}
2. Hover effects on Divi Columns
Look at the âWhat I doâ section. Each column consists of two modules: blurb (for the icon) and text (on a separate background). But when you use this hover effect, it creates the illusion that each column is one element. It creates a clean, uniform look. And you can have fun making those columns jump!
![](https://divilover.com/wp-content/uploads/2018/09/column_min.gif)
.dl-column-up .et_pb_column {
transition: all .3s ease-in-out;
}
.dl-column-up .et_pb_column:hover {
transform:translateY(-10px);
}
3. Changing one element while hovering over a Section
You can add a hover effect to the whole section or row in such a way that itâll affect just one element within it. Take a look at âRecent Projectâ in the layout. When you hover over one row, only the image changes. Whatâs exceptional about it is that the hover effect on the image will be activated whenever you place your cursor within the row. It doesnât have to go directly over the image.
![](https://divilover.com/wp-content/uploads/2018/09/image_filter_min.gif)
.dl-row:hover .et_pb_module {
/* your CSS */
}
Reverse Image Filters on Hover
Now, thatâs a fun idea! Youâve probably been wondering how I achieved this coloring-in hover effect in this section. No, I havenât added any complicated custom CSS to create this effect. Instead, Iâve reversed the process.
You can add some filters to the image the way itâs normally displayed using Divi Module options (I decreased the saturation and opacity and added some blur), and simply remove the filter on hover using the simple CSS declaration: âfilter:none;â. This way, your image will magically unblur and color-in on hover!
.dl-row .et_pb_image {
transition: all 1s ease-in-out;
}
.dl-row:hover .et_pb_image {
filter: none!important;
}
@media (max-width:980px) {
.dl-row .et_pb_image {
filter:none!important;
}
}
5. Hover Effects for Element Inside a Module
If you want to add a hover effect to just one element inside a module, like an icon in a blurb or a social media icon, you need to use your browserâs Inspector (Developer Tools). We do this to check the CSS class of the element you want to change on hover. The custom CSS class which weâll be adding in the Advanced Tab will affect the whole parent container. And we donât want the whole blurb to change – just the icon.
![](https://divilover.com/wp-content/uploads/2018/09/shrink_icons_min.gif)
.dl-social li a.icon:before {
font-size:30px;
transition: all .3s ease-in-out;
}
.dl-social li a.icon:hover:before {
transform:scale(0.8);
color:#fff;
}
.dl-blurb .et-pb-icon {
transition: all .3s ease-in-out;
}
.dl-blurb:hover .et-pb-icon {
transform:scale(0.8);
}
Final thoughts
Hover effects are so much fun! But no matter how much you love them, remember to be subtle and consistent. These microinteractions are useful and attractive, but if you overdo them, the effect may work against you.
What do you think about these hover effects? Have you tried some of them? Let me know in the comments!
May I know the hover effect on your own website homepage with the images stacked over each other and the one which is hovered pops up please
Yet again, another useful tip, I’ve used so many so far from you Divi Lover, thank you. THANK YOU!
I love your tutorials! I almost gave up on Divi until I found your website!
Seeing all the wonderful things you can do with Divi makes it my top choice!
The hover effects in this tutorial are gorgeous!
it was very useful thanks …
Hi Ania
Very simple CSS but adds great effects.
Thanks for sharing.
Love it, beautiful transitions. Thanks for teaching us how to achieve this!
Cooool! love this kind of effects, thank you….
Very nice. Thanks. I will try couple of these on my next project.