Delay appearance of Project thumbnail mouseover image
-
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; }
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
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com