Mouseover thumbnail opacity
-
Hello,
I'm currently using the mouseover image for thumbnails option and would like the mouseover image to fade in. I'm not sure if I have the correct classes for the thumbnails, is this right?
.thumb has-mouseover-img mo_thumb{
opacity:0;
transition-duration: 150ms;
transition-timing-function: ease-out;
}
.thumb.has-mouseover-img:hover mo_thumb{
opacity:1;
transition-duration: 150ms;
transition-timing-function: ease-out;
}Thank you!
-
Dear @kristyjcheng
can you post a link to your website where you want to have the effect?Best!
Marius
-
@mariusjopen Hi Marius, my website is kristyjcheng.com! I have the mouseover effect for the SPCA project currently.
-
-
Hi @mariusjopen, any updates on this? Sorry to bother!
-
-
please use this css:
.no-touchdevice .thumb.has-mouseover-img:hover .ph{ img:first-child{ opacity: 0; } img.mo_thumb{ opacity: 1; } } .touchdevice .thumb.has-mouseover-img.hover .ph{ img:first-child{ opacity: 0; } img.mo_thumb{ opacity: 1; } } .thumb.has-mouseover-img img.mo_thumb{ opacity: 0; } .thumb.has-mouseover-img img.mo_thumb, .thumb.has-mouseover-img img:first-child{ visibility: visible; }
the new lay theme update will include this as an option
-
@arminunruh Hi Armin! I tried adding this code to my site but the css is telling me "Unknown property 'img' Expected RBRACE" on the lines with img:first-child. Any ideas on what to do?
-
-
@mariusjopen I have it applied to my website right now, it makes the hover image not show up at all?
EDIT: @arminunruh just updated Laytheme, the new option works now! Thank you for the mouseover hover option!
-
Great! Happy to hear!
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