# Difference Blend Mode Code

**URL:** <https://forum.readymag.com/t/difference-blend-mode-code/6123>\
**Category:** Custom code\
**Created:** [May 26, 2026, 2:11pm UTC](https://forum.readymag.com/t/difference-blend-mode-code/6123 "2026-05-26T14:11:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varvara\_Godovikova](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/varvara_godovikova/32/4315_2.png) [@Varvara\_Godovikova](https://forum.readymag.com/u/Varvara_Godovikova)\
**Post date:** [May 26, 2026, 2:11pm UTC](https://forum.readymag.com/t/difference-blend-mode-code/6123/1 "2026-05-26T14:11:49Z")

</div>

Hi everyone,

I’m trying to apply mix-blend-mode: difference to some text blocks on my Readymag project, but I can’t get it to work and I’m hoping someone here has found a solution.

The setup: I have a few text elements (menu buttons, and social links — email, Telegram, Instagram) sitting over a background image. I want them to blend with the image using the difference blend mode, so the text inverts the colors beneath it.

What I’ve tried:

1. Adding CSS via Settings → Custom Code → CSS targeting the element by its data-id attribute:  
[data-id=“6a140bf25dfc4771d456f03d”] { mix-blend-mode: difference; }

2. Adding a JavaScript snippet via Settings → Custom Code → Before to apply the style dynamically, including a MutationObserver to handle Readymag’s dynamic loading.

3. Setting color: white alongside mix-blend-mode: difference in the JS.

None of these approaches have worked. I suspect the issue may be related to the fact that Readymag renders text blocks inside iframes, which would prevent external CSS or JS from affecting the content inside them.

Has anyone managed to apply mix-blend-mode to text blocks in Readymag? Is there a workaround — for example, using a shape or image overlay with blend mode instead? Any help would be greatly appreciated!

Here is my published project for reference: [Project](https://readymag.website/u1763384174/6359671/)

Thanks!

---

<div class="post-metadata">

**Author:** ![neueMeta](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/neuemeta/32/92_2.png) [@neueMeta](https://forum.readymag.com/u/neueMeta)\
**Post date:** [June 2, 2026, 8:03am UTC](https://forum.readymag.com/t/difference-blend-mode-code/6123/2 "2026-06-02T08:03:13Z")

</div>

hey… we had this topic a while ago.  
e.g. look **[here](https://forum.readymag.com/t/menu-blending-mod/1986)**

---

<div class="post-metadata">

**Author:** ![Lara\_Maughan](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/lara_maughan/32/4667_2.png) [@Lara\_Maughan](https://forum.readymag.com/u/Lara_Maughan)\
**Post date:** [September 28, 2026, 9:59am UTC](https://forum.readymag.com/t/difference-blend-mode-code/6123/3 "2026-09-28T09:59:41Z")

</div>

hey @Varvara_Godovikova im having the same problem and nothing i do on the other post seems to be working what did you do to get yours working in the end?
