rounded corner for project thumbnails when mouseover
-
I would like to know if there is any way to get rounded corner on project thumbnails when mouseover?
-
.thumb-rel{ overflow: hidden; transition: all 200ms ease; border-radius: 0; } .thumbnail-wrap:hover .thumb-rel{ border-radius: 30px; } -
.thumb-rel{ overflow: hidden; transition: all 200ms ease; border-radius: 0; } .thumbnail-wrap:hover .thumb-rel{ border-radius: 30px; }Great! Thanks @arminunruh it works perfect 👌
-
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? -
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
-
Hey Armin, here is the URL: lasseschmieder.de
Thank you! -
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);
} -
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.
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
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:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- 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:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it