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. rounded corner for project thumbnails when mouseover

rounded corner for project thumbnails when mouseover

Scheduled Pinned Locked Moved General Discussion
12 Posts 4 Posters 1.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.
  • Thomas_blankT Offline
    Thomas_blankT Offline
    Thomas_blank
    wrote on last edited by Thomas_blank
    #1

    I would like to know if there is any way to get rounded corner on project thumbnails when mouseover?

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2
      .thumb-rel{
          overflow: hidden;
          transition: all 200ms ease;
          border-radius: 0;
      }
      
      .thumbnail-wrap:hover .thumb-rel{
          border-radius: 30px;
      }
      
      Thomas_blankT 1 Reply Last reply
      0
      • arminunruhA arminunruh
        .thumb-rel{
            overflow: hidden;
            transition: all 200ms ease;
            border-radius: 0;
        }
        
        .thumbnail-wrap:hover .thumb-rel{
            border-radius: 30px;
        }
        
        Thomas_blankT Offline
        Thomas_blankT Offline
        Thomas_blank
        wrote on last edited by
        #3

        Great! Thanks @arminunruh it works perfect 👌

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lasse.s 0
          wrote on last edited by
          #4

          Hey, my Thumbnails are already set to a rounded border, when I use the code above to ensure that they stay at that radius when hovering, there is still some glitching happening, showing the sharp (not rounded) edges between the hovering and not hovering state.
          Is there a way to fix that?

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

            If your thumbnails already have a rounded corner, you should not need extra CSS rules for hover just to keep them rounded on hover. Can you please post your website URL so I can actually see your rounded corners? I have to see how you set it up, or you can paste the CSS you used to create the rounded corners here.

            For the thumbnail grid, if you edit it in the thumbnail grid modal, there are rounded corner settings there right now. You could also just choose to use those instead of your custom CSS. In case you use rounded corners at all

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lasse.s 0
              wrote on last edited by
              #6

              Hey Armin, here is the URL: lasseschmieder.de
              Thank you!

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

                Hey, sorry about the late answer.
                I think this is because of the mouse over animation that scales the image. I think that's the setting in customize - project thumbnails.

                Seems like you use different CSS than what I recommended, no?

                img, video {
                border-radius: var(--bild-radius);
                display: block;
                }

                So I just tried it, and if I add this CSS, additionally to your CSS then it stays rounded:

                .ph{
                border-radius: var(--bild-radius);
                }

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

                  Oh yeah, see, now even my own thumbnail grid modal setting for rounded corners does not work correctly when using the zoom in project thumbnail mouse over setting. I'm fixing that too now. Afterwards, you can just use that setting instead of the custom CSS if you want. I will release this with the next update.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    lasse.s 0
                    wrote on last edited by
                    #9

                    Thank you!

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      lasse.s 0
                      wrote on last edited by
                      #10

                      Oh but one more thing! The setting you added is perfect, but could you maybe add one also for mobile as the rounded edges for desktop dont scale down so well for desktop..

                      This might be too much to ask but what CSS do I add to turn all edges on all videos and images on my website into a certain border radius?

                      Thank you!

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        FANER
                        wrote on last edited by
                        #11

                        for images try

                        img { border-radius: 5px;}
                        
                        1 Reply Last reply
                        0
                        • arminunruhA Offline
                          arminunruhA Offline
                          arminunruh
                          Global Moderator
                          wrote on last edited by
                          #12

                          hey i will write it down as an idea, not sure when i will have time to do this @lasse.s-0

                          unfortunately there is no easy "all videos and images" rounded corners css selector for mobile

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.

                          Want to support my work? paypal.me/arminunruh

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