Sorry, here’s the updated link https://violante.org
Actually, I don’t understand why but both the writing “Studio Violante” and the texts that scroll at the end, which were previously on difference, now remain white.
I now have this in css (for both Studio Violante and texts in the poster gallery)
[data-id="655ca8cacf632900190dd660"] {
mix-blend-mode: difference;
}
[data-id="655ca8cacf632900190dd68f"] {
mix-blend-mode: difference;```
An this in the before body
<script>
window.addEventListener("load", () => {
$('[data-id=655ca8cacf632900190dd660]').parent().css({"mix-blend-mode":"difference"});
});
</script>
<script>
window.addEventListener("load", () => {
$('[data-id=655ca8cacf632900190dd68f]').parent().css({"mix-blend-mode":"difference"});
});
</script>
hey, the problem is, that your css rule is only addressing your data-id widget. but as it is embed in a “animation container” the mix-blend-mode cannot be seen as its not adressing the right one.
The code you have provided, should work, but, it probably gets not executed.
I would guess, that the “load listener” isnt firing.
To investigate, please erase the window listener and exchange for a timeout. If this is now working you know, that the load-listener isnt working.
could you explain a bit more in detail, what is your code right now?
Here another example, that is a bit more structured:
<script>
setTimeout(function() {
// text id
$('[data-id=655ca8cacf632900190dd660]').parent().css({"mix-blend-mode":"difference"});
// image id
$('[data-id=655ca8cacf632900190dd68f]').parent().css({"mix-blend-mode":"multiply"});
// if Rm element has one more animation, add another ".parent()"
}, 3000);
</script>
Hello, how are you? A question: what if I want to use this code on a button? I tried using the codes you sent us, but it only works on text, it doesn’t work on buttons