Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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 2.3k Views 2 Watching
  • 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
    arminunruhA
    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/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
      D
      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/topic/10519/make-image-caption-follow-mouse

        D
        D
        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/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
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by arminunruh
          #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*/
          .type-img .caption{
              opacity: 0;
              transition: opacity 300ms ease;
          }
          .type-img:hover .caption{
              opacity: 1;
          }
          
          /*this makes the caption be on the image, centered*/
          .type-img .caption{
              transform: translate(-50%, -50%);
              position: absolute;
              top: 50%;
              left: 50%;
          }
          
          /*this makes the caption click through*/
          .type-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*/
            .type-img .caption{
                opacity: 0;
                transition: opacity 300ms ease;
            }
            .type-img:hover .caption{
                opacity: 1;
            }
            
            /*this makes the caption be on the image, centered*/
            .type-img .caption{
                transform: translate(-50%, -50%);
                position: absolute;
                top: 50%;
                left: 50%;
            }
            
            /*this makes the caption click through*/
            .type-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
            D
            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
              D
              dingdong
              wrote on last edited by
              #8

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

              1 Reply Last reply
              0
              • arminunruhA
                arminunruhA
                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
                  arminunruhA
                  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
                    D
                    dingdong
                    wrote on 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
                      arminunruhA
                      arminunruh
                      Global Moderator
                      wrote on 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
                      • arminunruhA arminunruh referenced this topic on

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      Online Users
                      C
                      craigfeldspar
                      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