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. Hover on simple Images

Hover on simple Images

Scheduled Pinned Locked Moved General Discussion
37 Posts 10 Posters 12.9k Views 4 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.
  • mariusjopenM
    mariusjopenM
    mariusjopen
    Global Moderator
    wrote on last edited by
    #15

    Dear @Subliner
    can you tell we which image you want to have the effect applied to and which piece of text you want to appear in it?

    Best!

    Marius

    www.mariusjopen.world

    S 1 Reply Last reply
    0
    • S
      S
      Subliner
      wrote on last edited by Subliner
      #16
      This post is deleted!
      1 Reply Last reply
      0
      • mariusjopenM
        mariusjopenM
        mariusjopen
        Global Moderator
        wrote on last edited by
        #17

        Dear @mathias
        can you add a caption that I can see where the problem with the code is?

        Best!

        Marius

        www.mariusjopen.world

        1 Reply Last reply
        0
        • mariusjopenM mariusjopen

          Dear @Subliner
          can you tell we which image you want to have the effect applied to and which piece of text you want to appear in it?

          Best!

          Marius

          S
          S
          Subliner
          wrote on last edited by
          #18
          This post is deleted!
          1 Reply Last reply
          0
          • mariusjopenM
            mariusjopenM
            mariusjopen
            Global Moderator
            wrote on last edited by
            #19

            Dear @mathias
            but you added a caption for the image?
            You need to add the caption by selecting an image and then click on edit caption.

            Best!

            Marius

            www.mariusjopen.world

            S C 2 Replies Last reply
            0
            • mariusjopenM mariusjopen

              Dear @mathias
              but you added a caption for the image?
              You need to add the caption by selecting an image and then click on edit caption.

              Best!

              Marius

              S
              S
              Subliner
              wrote on last edited by
              #20
              This post is deleted!
              1 Reply Last reply
              0
              • arminunruhA arminunruh

                hey, you can do this with custom css!

                .img img{
                transition: all 300ms ease;
                }
                
                .img:hover img{
                filter: brightness(0.9);
                }
                
                .img .caption{
                opacity: 0;
                transition: opacity 300ms ease;
                }
                
                .img:hover .caption{
                opacity: 1;
                }
                

                Css is not so hard to do! There are little video courses about it like the one I recommend on khan university in the documentation section "custom css"

                S
                S
                Subliner
                wrote on last edited by Subliner
                #21

                @arminunruh Hello!

                It´s working for me, but it will be perfect if I can something like a "fade to white" .. Put white transparency when hover to see the black text better.

                Thanks!

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

                  Dear @Subliner
                  you can achieve this by using CUSTOM-CSS.

                  Best!

                  Marius

                  www.mariusjopen.world

                  S D 3 Replies Last reply
                  0
                  • mariusjopenM mariusjopen

                    Dear @Subliner
                    you can achieve this by using CUSTOM-CSS.

                    Best!

                    Marius

                    S
                    S
                    Subliner
                    wrote on last edited by Subliner
                    #23
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • mariusjopenM mariusjopen

                      Dear @Subliner
                      you can achieve this by using CUSTOM-CSS.

                      Best!

                      Marius

                      S
                      S
                      Subliner
                      wrote on last edited by
                      #24

                      @mariusjopen It´s done!

                      Thanks!

                      1 Reply Last reply
                      0
                      • C
                        C
                        CharlotteG
                        wrote on last edited by
                        #25
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • mariusjopenM mariusjopen

                          Dear @mathias
                          but you added a caption for the image?
                          You need to add the caption by selecting an image and then click on edit caption.

                          Best!

                          Marius

                          C
                          C
                          CharlotteG
                          wrote on last edited by
                          #26

                          Hi @mariusjopen

                          thank you so much for this, it is exactly what I was looking for. However I don't seem to be getting the captions to show. I don't have captions on every image yet, though the first couple of images on this page should be showing them —> https://www.ritaferrando.com/walls Would be great if you could help me out!

                          Best,
                          Charlotte

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

                            Dear @CharlotteG
                            I don't see any captions on your website :-/
                            Best!

                            Marius

                            www.mariusjopen.world

                            1 Reply Last reply
                            0
                            • C
                              C
                              CharlotteG
                              wrote on last edited by
                              #28

                              Hi @mariusjopen,

                              Thank you for your response.

                              I know. I can't quite figure out why that is because I definitely put captions in for a lot of the images. See screenshot below. Still they will not show.

                              Bildschirmfoto 2020-07-06 um 17.31.00.png

                              This is the code I am using:

                              .img img{
                              transition: all 300ms ease;
                              }
                              
                              .img:hover img{
                              filter: brightness(0.5);
                              }
                              
                              .img .caption{
                              opacity: 0;
                              transition: opacity 300ms ease;
                              }
                              
                              .img:hover .caption{
                              opacity: 1;
                              }
                              
                              .img .caption{
                                  position: absolute;
                                  top: 50%;
                                  left: 50%;
                                  transform: translate(-50%, -50%);
                              }
                              

                              Best,
                              Charlotte

                              1 Reply Last reply
                              0
                              • C
                                C
                                CharlotteG
                                wrote on last edited by
                                #29

                                Hi @mariusjopen,

                                I figured it out. I wasn't aware that putting in a caption in the media library or inside the gridder does not translate to the page.

                                I would now like to do the same to images in a carousel. Is that possible?

                                Best,
                                Charlotte

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

                                  Dear @CharlotteG
                                  it is not possible to use the captions from the media library.
                                  You need to adfd them into each image in the carousel and under each image in the Gridder.
                                  Best!
                                  Marius

                                  www.mariusjopen.world

                                  1 Reply Last reply
                                  0
                                  • mariusjopenM mariusjopen

                                    Dear @Subliner
                                    you can achieve this by using CUSTOM-CSS.

                                    Best!

                                    Marius

                                    D
                                    D
                                    Dominik Gauly
                                    wrote on last edited by
                                    #31

                                    @mariusjopen Hi Marius! How can I create an overlay color on mouse over. You said to use custom css, but I can’t find the right method to create an overlay color. Absolute code beginner...

                                    1 Reply Last reply
                                    0
                                    • RichardR
                                      RichardR
                                      Richard
                                      Global Moderator
                                      wrote on last edited by
                                      #32

                                      Dear @Dominik-Gauly

                                      Just to say hi, reply and let you know that i am looking into this :)

                                      Thank you for using Lay Theme

                                      Best Wishes
                                      Richard

                                      1 Reply Last reply
                                      0
                                      • L
                                        L
                                        LouisS
                                        wrote on last edited by LouisS
                                        #33

                                        Hi,
                                        I am wondering if the appearance of an image caption on top of an image when you hover over it is still possible. I have used the CSS code that is in the post here, but I don't see how this works with the new versions. I get a darker image when hovering, but no captions anymore. Can I add a lightbox caption and let that appear somehow?

                                        .slug-editions .img img{
                                        transition: all 300ms ease;
                                        }
                                        
                                        .slug-editions .img:hover img{
                                        filter: brightness(0.5);
                                        }
                                        
                                        .slug-editions .img .caption{
                                        opacity: 0;
                                        transition: opacity 300ms ease;
                                        }
                                        
                                        .slug-editions .img:hover .caption{
                                        opacity: 1;
                                        }
                                        
                                        .slug-editions .img .caption{
                                            position: absolute;
                                            top: 50%;
                                            left: 50%;
                                            transform: translate(-50%, -50%);
                                        }
                                        
                                        1 Reply Last reply
                                        0
                                        • arminunruhA
                                          arminunruhA
                                          arminunruh
                                          Global Moderator
                                          wrote on last edited by
                                          #34

                                          hello!

                                          .img .caption{
                                              opacity: 0;
                                              transition: opacity 300ms ease;
                                          }
                                          .img:hover .caption{
                                              opacity: 1;
                                          }
                                          

                                          this should show a caption of an image on hover!
                                          you need to set the caption when you select the image and click edit caption in the gridder

                                          just from looking at your css quickly it seems correct. but yours will only work on the page with a slug "editions"
                                          explanation:
                                          https://laytheme.com/documentation/custom-css-styling.html#css-based-on-current-page

                                          1 Reply Last reply
                                          0

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