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. text / link on image hover

text / link on image hover

Scheduled Pinned Locked Moved General Discussion
12 Posts 2 Posters 271 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
    #2

    i think you should use the parallax feature instead of sticky

    https://laytheme.com/documentation/simple-parallax.html#ajax-container

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

      if you want text to follow your mouse when your mouse is over an image:

      http://laythemeforum.com:4567/topic/10519/make-image-caption-follow-mouse

      D 1 Reply Last reply
      0
      • arminunruhA arminunruh

        i think you should use the parallax feature instead of sticky

        https://laytheme.com/documentation/simple-parallax.html#ajax-container

        D Offline
        D Offline
        dingdong
        wrote on last edited by
        #4

        @arminunruh am i right, that i have to give all images parallax if i use it?
        i just tried only the second row, but then there is a huge white space... actually the problem is online between first and second row...

        1 Reply Last reply
        0
        • arminunruhA arminunruh

          if you want text to follow your mouse when your mouse is over an image:

          http://laythemeforum.com:4567/topic/10519/make-image-caption-follow-mouse

          D Offline
          D Offline
          dingdong
          wrote on last edited by
          #5

          @arminunruh said in text / link on image hover:

          if you want text to follow your mouse when your mouse is over an image:

          http://laythemeforum.com:4567/topic/10519/make-image-caption-follow-mouse

          That works.
          but is it also possible to have the text bottom right / left on the image and no "follow mouse"?

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

            am i right, that i have to give all images parallax if i use it?
            i just tried only the second row, but then there is a huge white space... actually the problem is online between first and second row...

            no you dont. just give some of them a small parallax. the ones at the very bottom, dont give them a parallax.

            but is it also possible to have the text bottom right / left on the image and no "follow mouse"?

            Oh you didnt want the follow mouse I see.
            You just wanted it to show up on mouseover.

            /*this makes the caption appear on mouseover*/
            .img .caption{
                opacity: 0;
                transition: opacity 300ms ease;
            }
            .img:hover .caption{
                opacity: 1;
            }
            
            /*this makes the caption be on the image, centered*/
            .img .caption{
                transform: translate(-50%, -50%);
                position: absolute;
                top: 50%;
                left: 50%;
            }
            
            /*this makes the caption click through*/
            .img .caption{
            pointer-events: none;
            }
            

            now in the gridder just right click an image, and click link image

            this way you can have a link on an image

            D 1 Reply Last reply
            0
            • arminunruhA arminunruh

              am i right, that i have to give all images parallax if i use it?
              i just tried only the second row, but then there is a huge white space... actually the problem is online between first and second row...

              no you dont. just give some of them a small parallax. the ones at the very bottom, dont give them a parallax.

              but is it also possible to have the text bottom right / left on the image and no "follow mouse"?

              Oh you didnt want the follow mouse I see.
              You just wanted it to show up on mouseover.

              /*this makes the caption appear on mouseover*/
              .img .caption{
                  opacity: 0;
                  transition: opacity 300ms ease;
              }
              .img:hover .caption{
                  opacity: 1;
              }
              
              /*this makes the caption be on the image, centered*/
              .img .caption{
                  transform: translate(-50%, -50%);
                  position: absolute;
                  top: 50%;
                  left: 50%;
              }
              
              /*this makes the caption click through*/
              .img .caption{
              pointer-events: none;
              }
              

              now in the gridder just right click an image, and click link image

              this way you can have a link on an image

              D Offline
              D Offline
              dingdong
              wrote on last edited by
              #7

              @arminunruh said in text / link on image hover:

              am i right, that i have to give all images parallax if i use it?
              i just tried only the second row, but then there is a huge white space... actually the problem is online between first and second row...

              no you dont. just give some of them a small parallax. the ones at the very bottom, dont give them a parallax.

              hm, the images with red background (color just to make it visible) have parallax 1, green has 1,7.
              now the purple actually has to be more than 1,7 - but i just want the "original" distance from green to purple. so actually all below "green" has to have 1,7... no?

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dingdong
                wrote on last edited by
                #8

                The text seems to work, THANKS!!! :-*

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

                  hey about the parallax, you'll have to figure out yourself what values you would like to use. If it doesn't work they way you like maybe its not the way to go.

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

                    but i would disable the sticky effect on the first row, i think it doesn't fit so well there

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      dingdong
                      wrote last edited by
                      #11

                      @arminunruh works fine, but in mobile version image 4 has different space above and below than other images?!
                      is it because of the "long caption text"?
                      https://www.mikeabmaier.com

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

                        hey sorry i dont really know where to look on your site i just see some normal images under each other on mobile

                        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
                        L
                        luziaconzeta
                        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