sparkles2.png

Text & Image - Dark Overlay to Transparent Hover

 

This effect helps text be more readable on Text & Image blocks whilst also havin the image more clear on hover.

 
 
 

See the effect in action

 
Screenshot 2021-07-06 at 14.35.55.png
 
 
 

How to use the Effect

Select the Text & Image block that you wish to apply the effect to, select 'Actions' from the top header of BlockLab and then select 'Custom CSS'. Copy and paste the below code into the pop up, hit save and the effect will be applied.

 

CSS

row .block img {
    -webkit-filter: brightness(0.5);
    filter: brightness(0.7);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
row .block:hover img {
    -webkit-filter: brightness(0.9);
    filter: brightness(0.9);
}