Skip to main content
Nintex Community Menu Bar
Solved

How to change image opacity in wrapper background

  • February 21, 2025
  • 3 replies
  • 41 views

Forum|alt.badge.img+2

 Hi! When I change a wrapper’s background to an image, there’s an option for “color”. I had thought that if I selected one of the opacity colors that this would apply a dark overlay (for when I want to show white text on top). However, it looks like this doesn’t affect the image at all. Is there a way to have both an image background and apply an opacity overlay within the same wrapper?

 

 

Best answer by Joseph_Nichols

Hey ​@big_red_one

Unfortunately, our background builder does not currently make use of the background-blend-mode CSS property which is what you need to make that magic happen. If you have the feature enabled where you can use JSS to extend with code, then you can create a variant that could be reused anytime you want to blend your background image with your background color.

  1. Open your design system in the DSS
  2. Create a Wrapper variant and call it “Overlay - For Image Backgrounds”
  3. Click the kebab button and select “Extend with code”
  4. Paste the code below into the code editor
  5. Click Done, click Save
  6. Follow the instructions in the comments below
/*

 Use this variant to blend the background image and background color

 In the Page Designer,
  1. Select your wrapper
  2. Set the style variant to "Overlay - For Image Backgrounds"
  3. Set the Background Source to "Image"
  4. Specify your image
  5. Specify your color:
     1. Choose custom > solid
     2. Select the color
     3. Drag the opacity slider to the desired amount of opacity
*/

return {
  "wrapper": {
    "backgroundBlendMode": "overlay"
  }
}

 

View original
Translate
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+7
  • Nintex Employee
  • 120 replies
  • February 24, 2025

Hello,

Unfortunately, you’ll have to use two Wrappers to have an image with the dark overlay on top. The way the properties are abstracted out won’t allow for multiple backgrounds in a way where you can adjust the sequencing.

Translate

Forum|alt.badge.img+4
  • Nintex Employee
  • 10 replies
  • Answer
  • March 3, 2025

Hey ​@big_red_one

Unfortunately, our background builder does not currently make use of the background-blend-mode CSS property which is what you need to make that magic happen. If you have the feature enabled where you can use JSS to extend with code, then you can create a variant that could be reused anytime you want to blend your background image with your background color.

  1. Open your design system in the DSS
  2. Create a Wrapper variant and call it “Overlay - For Image Backgrounds”
  3. Click the kebab button and select “Extend with code”
  4. Paste the code below into the code editor
  5. Click Done, click Save
  6. Follow the instructions in the comments below
/*

 Use this variant to blend the background image and background color

 In the Page Designer,
  1. Select your wrapper
  2. Set the style variant to "Overlay - For Image Backgrounds"
  3. Set the Background Source to "Image"
  4. Specify your image
  5. Specify your color:
     1. Choose custom > solid
     2. Select the color
     3. Drag the opacity slider to the desired amount of opacity
*/

return {
  "wrapper": {
    "backgroundBlendMode": "overlay"
  }
}

 

Translate

Forum|alt.badge.img+2
  • Author
  • Novice
  • 2 replies
  • March 4, 2025

Oooh, very cool. Thank you Joseph! So, it sounds like it’s halfway there, where setting the property in the background color does give us a value that can be used, but we just need the JS in order to take that value and combine it with the background image. Ok, good stuff. Probably beats having wrappers within wrappers everywhere, especially if you need them to behave like one element re: responsive width/height.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings