Delay appearance of Project thumbnail mouseover image
General Discussion
3
Posts
2
Posters
175
Views
2
Watching
-
Hi,
is possible to delay the appearance of project thumbnail images when hovering them?
Is there a special CCS selector for this?Many thanks!
-
just with custom css
this is the ususal css that makes the images show and hide:
.thumb.has-mouseover-img:hover img:first-child { opacity: 0 !important; } .thumb.has-mouseover-img:hover img.mo_thumb { opacity: 1 !important; }you'd need to use a https://developer.mozilla.org/en-US/docs/Web/CSS/transition-delay
and a https://developer.mozilla.org/en-US/docs/Web/CSS/transition -
Thanks!
This code worked for me:
/* delaying the the appearance of project thumbnail mouse hover images */ .thumb.has-mouseover-img img { transition: opacity 1.0s ease; } .thumb.has-mouseover-img img.mo_thumb { opacity: 0; transition: opacity 1.0s ease 0.2s; } .thumb.has-mouseover-img:hover img:first-child { opacity: 0; } .thumb.has-mouseover-img:hover img.mo_thumb { opacity: 1; }
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
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com