Shapes & Visual FX

Photographic color compositing in the browser using CSS blend modes

Opening desktop photo editors just to export multiple color-tinted variations of the same image clutters up your project. In this lab, I'll teach you how CSS mix-blend-mode and background-blend-mode let you composite photos, textures, and gradient overlays dynamically in the browser.

📖 Read the Complete Tutorial: CSS Blend Modes & Compositing Guide →
Image Blend Mode & Texture Mixer

How to Use the Blend Mode & Texture Mixer (3 Simple Steps)

1

Select Blend Mode

Choose between Multiply, Screen, Overlay, Color Dodge, Soft Light, or Color to dictate how light and dark pixels blend.

2

Configure Dual-Color Gradient

Pick two brand hex colors, set the gradient angle, and tune overlay opacity for vibrant two-tone duotone grading.

3

Add Analog Film Grain

Overlay procedural SVG feTurbulence grain, halftone dots, or CRT scanlines to give digital images an authentic tactile feel.

Features & CSS Best Practices

✓

Dual-Technique Support

Generates both multi-element mix-blend-mode architectures and single-element background-blend-mode declarations based on your layout needs.

✓

Procedural SVG Noise Generator

Encodes lightweight SVG feTurbulence fractal noise directly into CSS Data URIs, eliminating external PNG grain downloads.

✓

Pre-Blend Color Grading

Pair blend modes with CSS filter: grayscale() contrast() to replicate editorial print and high-fashion album cover styling.

✓

Full Modern Browser Support

Supported across all evergreen browser engines (Chrome, Firefox, Safari, Edge) without vendor prefixes or polyfills.

WordPress & Elementor Integration

How to Use CSS Blend Modes in Elementor

Apply striking color blend modes, duotone Spotify-style tints, and film grain textures to your Elementor images with pure CSS in 3 simple steps.

1

Copy Elementor / WP Code

In the generator above, switch to the Elementor / WP tab and click Copy to get the self-contained bundle with scoped blend mode CSS and image markup.

2

Insert an HTML Widget

In your WordPress dashboard, edit your page with Elementor (Free or Pro). Drag an HTML widget onto your canvas.

3

Paste & Update Image URL

Paste the snippet into the HTML Code box. Replace the sample image link with your photo from the WordPress Media Library.

🎨

Sync with Elementor Global Colors

Easily match brand aesthetics by connecting overlay gradient colors to var(--e-global-color-primary) in the included CSS.

âš¡

Pure CSS Rendering

Uses native browser mix-blend-mode without sluggish image filter plugins or heavy canvas processing.

Frequently Asked Questions

How do I use CSS blend modes and duotone effects in Elementor?

Switch to the Elementor / WP tab in the generator above and click Copy. In WordPress, open your Elementor canvas, drag an HTML widget into your section, and paste the code snippet. Replace the sample image URL with your WordPress Media Library image URL.

What is the difference between mix-blend-mode and background-blend-mode?

background-blend-mode blends multiple background layers (e.g. a gradient and an image URL) defined on the exact same element. In contrast, mix-blend-mode blends an element with the content rendered behind it in the DOM tree, enabling text, overlays, and siblings to blend together.

How do I create the iconic Spotify two-tone duotone effect?

First, convert the base photograph to high-contrast monochrome using filter: grayscale(100%) contrast(140%);. Then overlay a strong two-color linear gradient using mix-blend-mode: color; or mix-blend-mode: multiply;.

Why does mix-blend-mode create unexpected results on white backgrounds?

Modes like screen or color-dodge add brightness to the backdrop. If the page background behind the card is pure white (#ffffff), light blend modes will blend into the white page. Wrapping the blended elements in an isolated container with isolation: isolate; confines the blending to the card itself.

How does the SVG noise texture work without downloading an image file?

The grain is generated on-the-fly using the browser's native SVG filter engine via an encoded SVG Data URI containing a <feTurbulence type="fractalNoise"> element. It takes under 300 bytes of CSS and renders infinitely crisp at any zoom level.

How do I create an inverted color cursor or text effect with mix-blend-mode: difference?

Set mix-blend-mode: difference; and color: white; on a fixed circular cursor or header text. When passing over white backgrounds it turns black, and over dark backgrounds it turns white, ensuring constant contrast.

How do CSS blend modes interact with transparent PNGs and gradient overlays?

CSS blend modes compute colors strictly against non-transparent pixels. Transparent regions in PNGs or gradients remain completely transparent, allowing underlying page backgrounds to show through without blending artifacts.

Why does mix-blend-mode: multiply make white areas transparent?

In multiply mode, pixel RGB values are normalized (0 to 1) and multiplied. Because white has a mathematical value of 1.0, multiplying by white produces no change, effectively making white backgrounds disappear over darker layers.