Before you ask please READ THIS

How to set the blending mode of the logo?

edited April 2018 in Rife Posts: 8
Hello!

How to set the blending mode of the logo?

I want, that when using the blending mode, the logo (.png) is always visible on any background, even complex. For example, that the white logo is not lost on the light section of the background photo (or background photo in the case of "Slider Revolution").

Obviously, light and dark variants logo are not as flexible as the overlay mode. A variant with a shadow is not suitable.

It's great that in "css" there is "background-blende-mode". And in "Slider Revolution" it is used, and works well.

I know that there must be at least 2 layers to make this work.
How to do it right? On the example of Rife Fully https://rifetheme.com/fully/.

background-blend-mode: overlay;

Post edited by vasiliykuleshov on

Comments

  • AirAir
    Posts: 10,970
    Hi vasiliy!

    I have never used blend mode in production, but from my understanding it will not work.
    https://developer.mozilla.org/en-US/docs/Web/CSS/background-blend-mode It is said here that it only affects one element, and in this element if describes how background images & background color should blend.

    However in theme, slider and header are different elements, so it doesn't work.

    Could you show me link to revo slider where you see it working? I will check if they are doing it on separate elements.

    With kind regards.
  • edited April 2018 Posts: 8
    I created a test slider and exported it specifically for you so you can import it and see it. Slider in the attachment.
    only affects one element
    Now I also doubt that this will work.

    zip
    zip
    blend-mode.zip
    2M
    Post edited by vasiliykuleshov on
  • AirAir
    Posts: 10,970
    Hey Vasiliy!

    Thanks for slider. I was checking it out for long time and I have found that they use something else.

    You can add such custom CSS, but it will affect whole theme header:
    .header-horizontal #header {
        mix-blend-mode: overlay;
    }
    However I have played with it for a bit and for me mix-blend-mode: difference; might be better.

    Making this work only for logo in theme header : I didn't find a way yet, but I think it will require overwriting this in child elements of header. I can play around with this if you need. Let me know what do you think.

    With kind regards.
  • edited April 2018 Posts: 8
    Wow, thanks Air, it works almost the way I wanted it! :-)

    For me the value "overlay" is more appropriate than "difference", although the latter is very well distinguishable. But it all depends in what circumstances it is used. I will also experiment with this, the values and combinations there can be many, the main thing is not to lose readability.

    Making this work only for logo in theme header : I didn't find a way yet, but I think it will require overwriting this in child elements of header. I can play around with this if you need. Let me know what do you think.
    No thanks, I do not want to waste your time on this now. You have many other more important planned cases. ;-) For me this is an experiment in the design of the site, and right now there is no hot need for it.

    But someday in the future maybe this setting will appear in your Appearance/Customize/Header, and the Elementor!

    Post edited by vasiliykuleshov on
  • AirAir
    Posts: 10,970
    Sure, I think it could be cool addition once explored deeper:-) Glad I could help!

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!