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. Two image hover styles

Two image hover styles

Scheduled Pinned Locked Moved General Discussion
14 Posts 2 Posters 394 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.
  • arminunruhA Offline
    arminunruhA Offline
    arminunruh
    Global Moderator
    wrote on last edited by
    #5

    Screenshot 2023-12-17 at 09.15.23.png

    if you look closely through the DOM using chrome browser inspector for example you will find this dom element for the right background images.

    so all we need to do is use this css:

    .lay-imagehover-on-element[data-imageposition="rightbackground"]{
    z-index: 99;
    }
    

    in lay options → custom css & html, put it in custom css

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #6

      yea no the project index element doesn't have these settings!

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ingi
        wrote on last edited by
        #7

        Not working :/ Here's a direct link so you can instantly see what I'm trying to do: https://new.id.is/erna-gunnarsdottir/

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #8

          well just do it the other way around

          in the default settings make all images be rightbackground and position above all elements

          and for your other links on your website, edit them in the gridder and set all of them to center-fixed

          and then use this css to make them be underneath other elements

          .lay-imagehover-on-element[data-imageposition="centerfixed"]{
          z-index: 0!important;
          }
          
          1 Reply Last reply
          0
          • I Offline
            I Offline
            Ingi
            wrote on last edited by
            #9

            Thanks for helping! The thing is that I'm only using a project index for this so I cant edit them.

            1 Reply Last reply
            0
            • I Offline
              I Offline
              Ingi
              wrote on last edited by
              #10

              So I'm currently using a workaround by creating a faux project index in the gridder, linking both text and rows. Doesn't quite work as good so It would be great to figure out some solution. Could I target multiple data IDs of the imgs to override the settings? Or some other way?

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #11

                no you can't

                you can link a whole row and set a imagehover image for that linked row. did you know that? you might want to do that

                right click an empty part of the row in the gridder and click "link row"

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  Ingi
                  wrote on last edited by
                  #12

                  Yep I'm doing it! See here: https://new.id.is/en/elin-signy-w-ragnarsdottir-en/
                  It works okay but the animation could be more smooth between elements. (If I could link the horizontal lines I would do it as well haha) It would be lovely to access the imagehover settings through the project index in the future. If that makes sense?

                  1 Reply Last reply
                  0
                  • arminunruhA Offline
                    arminunruhA Offline
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #13

                    hey try to use space top and space bottom on the elements, right click the texts, spaces → set space top and space bottom

                    then set row gutter to 0 between the elements

                    because right now when your mouse is between rows, the image hover wont be triggered

                    that should do the trick

                    It would be lovely to access the imagehover settings through the project index in the future.

                    that is a good idea yea, not sure if i will work on it though :O cause im not sure if many people would need this

                    1 Reply Last reply
                    0
                    • I Offline
                      I Offline
                      Ingi
                      wrote on last edited by
                      #14
                      This post is deleted!
                      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
                      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