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. Images appear on link hover

Images appear on link hover

Scheduled Pinned Locked Moved General Discussion
18 Posts 9 Posters 4.4k 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
    #4

    ok please send me your wordpress admin panel login data to armin.unruh@gmail.com with a link to this post

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

      hey daniel thanks for giving me the login data.

      On many occasions your css has missing values like here:
      Screen Shot 2016-09-14 at 08.33.59.png

      icons that there is an error. For example
      margin-bottom: ;  is invalid CSS.
      I commented out every invalid CSS statement for your desktop css and now things seem to work fine in Chrome. You would need to correct the CSS for your phone version too.

      1 Reply Last reply
      0
      • dafvD Offline
        dafvD Offline
        dafv
        wrote on last edited by
        #6

        :o i didn't know that those blank spaces would affect so drastically!
        THANK YOU SO MUCH ARMIN <3

        1 Reply Last reply
        0
        • M Offline
          M Offline
          m-czyk
          wrote on last edited by
          #7

          Is it possible to share the code with us?
          I would love to use this feature in my projectlist.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            adrianschnegg
            wrote on last edited by
            #8

            Yes, also for me it would be very intressting to see the code! i'm vey curious about the same topic, is it possible to grab it back up?

            1 Reply Last reply
            0
            • soyfranasensioS Offline
              soyfranasensioS Offline
              soyfranasensio
              wrote on last edited by
              #9

              Hi, is it possible to retake this thread with this project? I am very interested to know how I can make this menu for my website!
              Thank you very much!

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sblck
                wrote on last edited by
                #10

                Hello party people, can we discuss this topic again? I would be very interested about how to implement the "show image on text hover" stuff :)

                cheers

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

                  Hi @sblck
                  right now there still is no solution yet.

                  I can imagine it to work by setting up a Thumbnail-Project-List. And then using Custom CSS and jQuery to hide and show images on hover.

                  We hope to integrate this feature in the future.

                  To all of you a good start into the week!

                  Marius

                  www.mariusjopen.world

                  1 Reply Last reply
                  1
                  • S Offline
                    S Offline
                    sblck
                    wrote on last edited by
                    #12

                    Hey there im working on a little workaround which is kinda lame when youre a coding noob like me.
                    Anyway, i modified an exisitng fiddle to this:

                    http://jsfiddle.net/seblock/b6wuj3er/

                    But i cant seem to figure out how to make it work in lay. I copy the css part in the custom css field, the js part (wih <script> tags) in the custom head field, and the html part in a gridder text bos using the <> source code box.
                    But i cannot seem to get it to work correctly, this is the result.

                    What am i doing wrong here? Something with the classes?

                    Thanks so much!

                    1 Reply Last reply
                    0
                    • edgrbnzE Offline
                      edgrbnzE Offline
                      edgrbnz
                      wrote on last edited by edgrbnz
                      #13

                      I’d like to give this a push.
                      Would be cool to have this inside lay or at least a guide on how to do so. If anyone would like to share their working code, that would be super nice.

                      I’ve been trying to implement this while using this codepen as a working example. But unfortunately I don’t seem to be able to get this to work…

                      Any help or insight is very much apprechiated!

                      ✦ ✦ ✦

                      1 Reply Last reply
                      0
                      • mariusjopenM Offline
                        mariusjopenM Offline
                        mariusjopen
                        Global Moderator
                        wrote on last edited by
                        #14

                        Dear @sblck
                        please also have a look here:
                        http://laytheme.com/documentation.html#custom-javascript
                        That might help with your JSFiddle example.

                        Best!

                        Marius

                        www.mariusjopen.world

                        1 Reply Last reply
                        0
                        • edgrbnzE Offline
                          edgrbnzE Offline
                          edgrbnz
                          wrote on last edited by edgrbnz
                          #15

                          I got it to work with the help of a friendly dev 🙂

                          It’s a bit messy in the gridder since you need to paste classes and images in the code-view text-editor. I’ll share some code but you may need to know a fair amount about CSS, HTML and jQuery to alter it for your needs:

                          Custom HTML at top:

                          <script>
                          // Hover Folio
                              function hover_folio() {
                                  var wrapper = $('.hoverFolio');
                          
                                  if (!wrapper[0] || wrapper[0].hoverFolio) {
                                      return;
                                  }
                          
                                  wrapper[0].hoverFolio = true;
                          
                                  var images = wrapper.find(".hoverFolio-image");
                                  var links = wrapper.find(".hoverFolio-link");
                          
                                  var currentImage;
                          
                                  links.each(function (index) {
                                      $(this).on("mouseenter", function () {
                                          if (currentImage) {
                                              currentImage.hide();
                                          }
                          
                                          currentImage = images.eq(index);
                          
                                          if (currentImage) {
                                              currentImage.show();
                                          }
                                      });
                                  });
                          
                                  links.on("mouseleave", function () {
                                      if (currentImage) {
                                          currentImage.hide();
                                      }
                                  });
                              }
                              $(document).ready(function() {
                                 hover_folio();
                                 // Every time a new page is shown, try to initialize the hoverFolio effect
                                 window.laytheme.on('newpageshown', hover_folio)
                              });
                          }(jQuery))
                          </script>
                          

                          Custom CSS:

                          .hoverFolio {
                          /*basic styling for your text object*/
                              margin: auto !important;
                          }
                          
                          .hoverFolio-links {
                          /*that’s the wrapper for the links which also defines the image height in relation to your text block*/
                              position: relative;
                              z-index: 1;
                              padding: 5vw 0;
                          }
                          
                          .hoverFolio .hoverFolio-images img.hoverFolio-image {
                          /*that’s your image positioning*/
                              position: absolute;
                              object-fit: contain;
                              width: auto;
                              height: 100%;
                              top: 0;
                              left: 50%;
                              bottom: 0;
                              transform: translateX(-50%);
                              display: none;
                          }
                          

                          Hover golio (gridder Content):

                          Paste into code-view of the gridder Element

                          <p class="hoverFolio-links">
                          	<a class="hoverFolio-link" href="https://linktosomewhere.com">Lorem</a>,
                          	<a class="hoverFolio-link" href="https://linktosomewhere.com">Ipsum</a>,
                          	<a class="hoverFolio-link" href="https://linktosomewhere.com">Dolor</a>,
                          	<a class="hoverFolio-link" href="https://linktosomewhere.com">Sit</a>,
                          	<a class="hoverFolio-link" href="https://linktosomewhere.com">Amet</a>,
                          </p>
                          
                          <div class="hoverFolio-images">
                          	<img class="hoverFolio-image" src="https://sourcetoyourimage.com"/>
                          	<img class="hoverFolio-image" src="https://sourcetoyourimage.com"/>
                          	<img class="hoverFolio-image" src="https://sourcetoyourimage.com"/>
                          	<img class="hoverFolio-image" src="https://sourcetoyourimage.com"/>
                          	<img class="hoverFolio-image" src="https://sourcetoyourimage.com"/>
                          </div>
                          }
                          

                          I hope this helps!


                          Nonetheless this would be super nice to have as a feature or plugin in the future!
                          It might make sense to combine it with the background positioning thing I described over here


                          PS: If someone is able to make this a bit cleaner, or something I did doesn’t make much sense 👉 Feel free to paste some changes/corrections!

                          ✦ ✦ ✦

                          1 Reply Last reply
                          1
                          • mariusjopenM Offline
                            mariusjopenM Offline
                            mariusjopen
                            Global Moderator
                            wrote on last edited by
                            #16

                            Dear @edgrbnz
                            again that you for your help. it is very much appreciated.
                            Happy to have the forum active :-)

                            All the best!

                            Marius

                            www.mariusjopen.world

                            1 Reply Last reply
                            0
                            • edgrbnzE Offline
                              edgrbnzE Offline
                              edgrbnz
                              wrote on last edited by edgrbnz
                              #17

                              Hey @mariusjopen 🙃
                              As long as I have some spare time and feel like I can contribute anything helpful I’m happy to help / share my thoughts.

                              💐💐💐

                              ✦ ✦ ✦

                              1 Reply Last reply
                              1
                              • C Offline
                                C Offline
                                comedowntous
                                wrote on last edited by
                                #18

                                @edgrbnz said in Images appear on link hover:

                                .hoverFolio {
                                /basic styling for your text object/
                                margin: auto !important;
                                }

                                .hoverFolio-links {
                                /that’s the wrapper for the links which also defines the image height in relation to your text block/
                                position: relative;
                                z-index: 1;
                                padding: 5vw 0;
                                }

                                .hoverFolio .hoverFolio-images img.hoverFolio-image {
                                /that’s your image positioning/
                                position: absolute;
                                object-fit: contain;
                                width: auto;
                                height: 100%;
                                top: 0;
                                left: 50%;
                                bottom: 0;
                                transform: translateX(-50%);
                                display: none;
                                }

                                This did not work for me even after changing $ to jQuery - anyone else having trouble setting this up?

                                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
                                D
                                Double
                                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