Complete the code to apply a multiply blend mode to the image.
<img src="image.jpg" alt="Sample" class="[1]">
bg-blend-multiply which applies to background layers, not the element itself.blend-multiply.The mix-blend-multiply class applies the multiply blend mode to the element, blending it with the background.
Complete the code to apply a screen blend mode to a div with a background color.
<div class="bg-blue-500 [1] p-4">Content</div>
bg-blend-screen which blends background layers, not the element itself.mix-blend-darken.The mix-blend-screen class applies the screen blend mode, which lightens the colors by inverting, multiplying, and inverting again.
Fix the error in the code to correctly apply the overlay blend mode to the image.
<img src="photo.png" alt="Photo" class="[1]">
bg-blend-overlay which only blends background layers.blend-overlay.The correct Tailwind class for overlay blend mode on an element is mix-blend-overlay. Other options are invalid or apply to backgrounds.
Fill both blanks to apply a background blend mode of multiply and a text color of white.
<div class="bg-red-600 [1] text-[2] p-6">Hello</div>
mix-blend-multiply instead of bg-blend-multiply for background layers.black text which may not contrast well on red.The bg-blend-multiply class blends background layers using multiply mode. The text color white ensures good contrast on the red background.
Fill all three blanks to create a div with a yellow background, apply screen blend mode to background layers, and set text color to black.
<div class="bg-[1] [2] text-[3] p-8">Welcome</div>
mix-blend-screen which blends the element, not background layers.The bg-yellow-400 sets a bright yellow background. bg-blend-screen applies screen blend mode to background layers. text-black sets the text color to black for good contrast.