I am using the carousel component from bootstrap and also want to use the CSS blend-mode background-blend-mode: multiply;
for the caption.
Unfortunately, the blend mode doesn't work.
The code is the following:
<div class="carousel-inner" role="listbox">
<div class="item">
<div class="carousel-caption">
CAPTION CONTENT
</div>
<img src="imgage.png" class="img-responsive" />
</div>
</div>
The CSS is the following:
.carousel-caption {
background-color: rgba(0, 119, 137, 0.7);
background-blend-mode: multiply;
}
Is this the wrong way?
You would need to assign the
background-image
property to same selector that you assigningbackground-blend-mode
. So this may not work in your case.From the Docs
Syntax Example:
Along with
multiply
you can also use:screen
,overlay
,darken
,lighten
,color-dodge
,color-burn
,hard-light
,soft-light
,difference
,exclusion
,hue
,saturation
,color
, andluminosity
. And alsonormal
Source