• HOME
  • DIVI BEGINNERS
  • TUTORIALS
  • TROUBLESHOOTING
  • SUBMIT A TICKET
  • HOME
  • DIVI BEGINNERS
  • TUTORIALS
  • TROUBLESHOOTING
  • SUBMIT A TICKET
home/Knowledge Base/2. Judy - Use Divi Visual Builder/Judy – How to add an overlay to parallax background

Judy – How to add an overlay to parallax background

Adding an overlay to a Background image is really easy in Divi.

All you have to do is set a Background Color and then set the Background Blend Mode to Overlay.

However this does not work if Parallax Effect is set to Yes in the Background settings.

 

I will share a simple trick to add an overlay on background images that have a Parallax Effect.

 

Add Overlay Color to Parallax Background


To add a simple overlay on top of the Background Image in a Section or Row, open the Settings > Advanced > Custom CSS >

Before and then add the below code.

You´ll find a code like this:

content:"";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #404f4b;
opacity: 0.9;
z-index: 1;

 

 

 

https://www.support.helplovelyconfetti.com/wp-content/uploads/2022/01/Overlay-to-Parallax-Section.webm

 

Add Gradient Overlay to Parallax Background


 
The code to add a gradient overlay to a parallax background is very similar to the code above. However writing the css code for gradient is not easy.

Luckily you can use CSSGradient.io to generate the css code for the gradient.
 

You have to use the controls at the top of style the gradient and then copy the CSS from the CSS box below the controls. Please see the below screenshot.

Next you just have to replace the background line from the code above with the background css that you copied from CSSGradient.io website.
 
In my case the updated would be:

content:"";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgb(64,79,75);
background: linear-gradient(78deg, rgba(64,79,75,0.500437675070028) 0%, rgba(68,33,43,0.49763655462184875) 50%);
z-index: 1;

This is how it will look at the end.

 

Related Articles
  • Judy – How to edit Carousel Sliders
  • Judy – How to add a video background
  • Judy – How to edit Testimonials
  • Judy – How to edit Services
  • Judy – How to edit Hero
  • Judy – How to edit texts
2. Judy - Use Divi Visual Builder
  • Judy – How to add an overlay to parallax background
  • Judy – How to enable the Divi Visual Builder
  • Judy – Choose your Home
  • Judy – How to edit images and backgrounds
  • Judy – How to edit texts
  • Judy – How to edit Hero
  • Judy – How to edit Services
  • Judy – How to edit Testimonials
View All 9  

  Judy – How to edit Carousel Sliders

Judy – How to add a video background  

  • Privacy Policy
  • Terms of Use
  • Copyright 2023. All Rights Reserved.