Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. mix-blend-mode

mix-blend-mode

Scheduled Pinned Locked Moved General Discussion
22 Posts 6 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clara_andrea
    wrote on Apr 8, 2021, 10:07 AM last edited by
    #1

    Hello,

    I'm really a noob on coding and I already read all topics about mix-blend-mode but I don't understand the problem with my website or my custom CSS.

    I would like to create a classic mix-blend-mode for my menu and when I try the code, the menu disappears beside the pictures of my website.

    The custom CSS I'm using is :

    .sitetitle  {
    	mix-blend-mode: difference;
    }
    
    .second_menu  {
        mix-blend-mode: difference;
    }
    
    .third_menu  {
        mix-blend-mode: difference;
    }
    
    .fourth_menu  {
    	mix-blend-mode: difference;
    }
    

    I don't understand, thank you so much for your help !

    Clara

    1 Reply Last reply
    0
    • F Offline
      F Offline
      felix_rabe
      wrote on Apr 8, 2021, 4:45 PM last edited by felix_rabe Apr 8, 2021, 12:53 PM
      #2

      @clara_andrea try this for the menus, or maybe just make the font white in the customizer.

      nav.third_menu a {
      color: white;
      }
      
      C 1 Reply Last reply Apr 10, 2021, 8:17 AM
      1
      • R Offline
        R Offline
        Richard
        Global Moderator
        wrote on Apr 9, 2021, 3:55 AM last edited by
        #3

        Thanks @fr ! :)

        1 Reply Last reply
        1
        • F felix_rabe
          Apr 8, 2021, 4:45 PM

          @clara_andrea try this for the menus, or maybe just make the font white in the customizer.

          nav.third_menu a {
          color: white;
          }
          
          C Offline
          C Offline
          clara_andrea
          wrote on Apr 10, 2021, 8:17 AM last edited by
          #4

          @fr said in mix-blend-mode:

          color: white;

          Hey @fr,

          Thanks for your reply !

          I would like to have the color of my text menu changed with the visuals behind, but it seems that "mix-blend-mode" doesn't work (and I saw this mode on another website).
          Difference mode is an example it could be "multiply" "overlay" etc.
          Not just the type in white.

          Thank you for your help !

          1 Reply Last reply
          0
          • F Offline
            F Offline
            felix_rabe
            wrote on Apr 10, 2021, 4:48 PM last edited by
            #5

            @clara_andrea do you mean this:

            Bildschirmfoto 2021-04-10 um 18.47.28.png

            C 1 Reply Last reply Apr 11, 2021, 4:32 PM
            0
            • F felix_rabe
              Apr 10, 2021, 4:48 PM

              @clara_andrea do you mean this:

              Bildschirmfoto 2021-04-10 um 18.47.28.png

              C Offline
              C Offline
              clara_andrea
              wrote on Apr 11, 2021, 4:32 PM last edited by
              #6

              @fr Yes exactly !

              1 Reply Last reply
              0
              • F Offline
                F Offline
                felix_rabe
                wrote on Apr 11, 2021, 6:16 PM last edited by
                #7

                @clara_andrea then you have to follow the steps laid out here :-) combine your mix blend mode code with the white font.

                C 1 Reply Last reply Apr 11, 2021, 7:44 PM
                0
                • F felix_rabe
                  Apr 11, 2021, 6:16 PM

                  @clara_andrea then you have to follow the steps laid out here :-) combine your mix blend mode code with the white font.

                  C Offline
                  C Offline
                  clara_andrea
                  wrote on Apr 11, 2021, 7:44 PM last edited by clara_andrea Apr 11, 2021, 3:48 PM
                  #8

                  @fr It works thank you so much !

                  But it's doesn't work with the sitetitle

                  .sitetitle  {
                  	mix-blend-mode: difference;
                  }
                  
                  .second_menu  {
                      mix-blend-mode: difference;
                  }
                  
                  .third_menu  {
                      mix-blend-mode: difference;
                  }
                  
                  .fourth_menu  {
                  	mix-blend-mode: difference;
                  }
                  
                  nav.sitetitle a {
                  color: white;
                  }
                  
                  nav.second_menu a {
                  color: white;
                  }
                  
                  nav.third_menu a {
                  color: white;
                  }
                  
                  nav.fourth_menu a {
                  color: white;
                  }
                  
                  F 1 Reply Last reply Apr 12, 2021, 9:52 AM
                  0
                  • C clara_andrea
                    Apr 11, 2021, 7:44 PM

                    @fr It works thank you so much !

                    But it's doesn't work with the sitetitle

                    .sitetitle  {
                    	mix-blend-mode: difference;
                    }
                    
                    .second_menu  {
                        mix-blend-mode: difference;
                    }
                    
                    .third_menu  {
                        mix-blend-mode: difference;
                    }
                    
                    .fourth_menu  {
                    	mix-blend-mode: difference;
                    }
                    
                    nav.sitetitle a {
                    color: white;
                    }
                    
                    nav.second_menu a {
                    color: white;
                    }
                    
                    nav.third_menu a {
                    color: white;
                    }
                    
                    nav.fourth_menu a {
                    color: white;
                    }
                    
                    F Offline
                    F Offline
                    felix_rabe
                    wrote on Apr 12, 2021, 9:52 AM last edited by
                    #9

                    @clara_andrea that is because site title is not a part of "nav".

                     .sitetitle-txt-inner {
                     color: white;
                     }
                    
                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      clara_andrea
                      wrote on Apr 12, 2021, 10:00 AM last edited by
                      #10

                      It works ! Thank you so much !

                      And last thing, so sorry, do you know if it's possible to attribute this only on the main page ? Because the white text for the menu is problematic in the project pages , we can't see it appears except with the hover but not everyone can guess.

                      Capture dโ€™eฬcran 2021-04-12 aฬ€ 11.57.13.png

                      Thank you again

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        felix_rabe
                        wrote on Apr 12, 2021, 11:18 AM last edited by
                        #11

                        @clara_andrea i don't know what you mean, I think it works perfect now.
                        you can do css for specific pages with slugs, see here under custom css styling:
                        https://laytheme.com/documentation.html

                        Bildschirmfoto 2021-04-12 um 13.17.31.png

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          clara_andrea
                          wrote on Apr 12, 2021, 11:26 AM last edited by clara_andrea Apr 12, 2021, 7:27 AM
                          #12

                          I try with safari and yes it works perfectly, but with chrome the menu text stay white and doesn't appears except above visuals or if I hover it.

                          Capture dโ€™eฬcran 2021-04-12 aฬ€ 13.27.00.png

                          1 Reply Last reply
                          0
                          • F Offline
                            F Offline
                            felix_rabe
                            wrote on Apr 12, 2021, 11:32 AM last edited by
                            #13

                            @clara_andrea ok for chrome you have to make your background white. with this:

                            .lay-content{ 
                            background: white;
                            }
                            
                            C 1 Reply Last reply Apr 12, 2021, 2:07 PM
                            1
                            • F felix_rabe
                              Apr 12, 2021, 11:32 AM

                              @clara_andrea ok for chrome you have to make your background white. with this:

                              .lay-content{ 
                              background: white;
                              }
                              
                              C Offline
                              C Offline
                              clara_andrea
                              wrote on Apr 12, 2021, 2:07 PM last edited by clara_andrea Apr 12, 2021, 10:09 AM
                              #14

                              @felix_rabe Thank you it works perfectly :)

                              The last thing is, when I'm on a page from the menu (about, shop), the name of the menu in question disappears. I don't know if it's still in the subject/due to the change of colors but before it wasn't like that so maybe there is something to add ?

                              Capture dโ€™eฬcran 2021-04-12 aฬ€ 16.03.36.png

                              1 Reply Last reply
                              0
                              • F Offline
                                F Offline
                                felix_rabe
                                wrote on Apr 12, 2021, 2:40 PM last edited by
                                #15

                                @clara_andrea this is because your active menu point is black (so its invisible with the mix blend mode). You have to make it white in the customizer.

                                clara_andreaC 1 Reply Last reply Apr 12, 2021, 7:52 PM
                                0
                                • F felix_rabe
                                  Apr 12, 2021, 2:40 PM

                                  @clara_andrea this is because your active menu point is black (so its invisible with the mix blend mode). You have to make it white in the customizer.

                                  clara_andreaC Offline
                                  clara_andreaC Offline
                                  clara_andrea
                                  wrote on Apr 12, 2021, 7:52 PM last edited by
                                  #16

                                  @felix_rabe Thank you so much for your help ! Everything is working !

                                  1 Reply Last reply
                                  2
                                  • alvarodozeA Offline
                                    alvarodozeA Offline
                                    alvarodoze
                                    wrote on Dec 28, 2023, 8:22 PM last edited by
                                    #17

                                    Hey @felix_rabe Can you help me with this too?๐Ÿ™๐Ÿ™ I'm trying to apply mix-blend-mode: difference; in the project-index but I can't get it. Any tips? https://alvarodoze.com/try-copy-2/

                                    Cheers mate!!

                                    1 Reply Last reply
                                    0
                                    • arminunruhA Offline
                                      arminunruhA Offline
                                      arminunruh
                                      Global Moderator
                                      wrote on Dec 29, 2023, 1:56 PM last edited by
                                      #18

                                      i think it doesn't work if the div is not a direct parent of the background
                                      i think it wont be possible with a projectindex

                                      1 Reply Last reply
                                      0
                                      • Y Offline
                                        Y Offline
                                        yelmarb
                                        wrote on Apr 24, 2024, 11:49 PM last edited by
                                        #19

                                        Hey @arminunruh is there a way of using "mix-blend-mode" but keeping the text either black or white instead of inverting the colors?

                                        I've tried using all the different blend modes but they all have a reversed color output.

                                        I've also tried using filter and grayscale but these don't work after the mix-blend-mode" function.

                                        Would there be any java script that could dynamically change text to either black or white when scrolled over images?

                                        1 Reply Last reply
                                        0
                                        • arminunruhA Offline
                                          arminunruhA Offline
                                          arminunruh
                                          Global Moderator
                                          wrote on May 1, 2024, 9:30 PM last edited by
                                          #20

                                          no there is nothing like that

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          I also code custom websites or custom Lay features.
                                          ๐Ÿ’ฟ Email me here: ๐Ÿ’ฟ
                                          info@laytheme.com

                                          Before you post:
                                          1. When using a WordPress Cache plugin, disable it or clear your cache.
                                          2. Update Lay Theme and all Lay Theme Addons
                                          3. Disable all Plugins
                                          4. Go to Lay Options โ†’ Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                                          This often solves issues you might run into

                                          When you post:
                                          1. Post a link to where the problem is
                                          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                                          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                                          Online Users
                                          I
                                          itsmarkjohn
                                          11 minutes ago
                                          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                                          laytheme.com
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Search