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; }
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login