Home › Forums › Jevelin Theme › Images on hover
Home › Forums › Jevelin Theme › Images on hover
Hi Guys
Is there a way to make the other images in my page containers act like the blog posts on hover?
Not bothered about the colour overlay its more the shadow disappearing and slight movement that I would like to achieve – hard to describe but images below.
http://www.northumbriantinsoldier.com
Solution for this topic
Hi @NorthumbrianTin,
I hope you are well today and thank you for your question.
You can achieve it by adding the following CSS code in the Custom CSS code option of your theme on the below path.
Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code
.woocommerce ul.products li.product, .woocommerce ul.products li.product .sh-woo-post-content-container{ bottom: 0; transition: 0.3s all ease-in-out; } .woocommerce ul.products li.product:hover .sh-woo-post-content-container{ box-shadow: 0px 1px 1px 1px rgba(0,0,0,0.06); } .woocommerce ul.products li.product:hover{ bottom: -4px; }
Best regards,
Shufflehound team
Thats Brilliant – Thank you so much ๐
Can I use this with my gallery elements? or is it only woocommerce?
Thanks and regards
D.
You are most welcome here ๐
Can I use this with my gallery elements? or is it only woocommerce?
Yes you can use it with gallery elements by developing more custom code as shared above.
Thanks for this – do you think you could elaborate a little more please?
I have tried different options in the code but still cannot get this to work – my gallery slider is on my front page @
https://www.northumbriantinsoldier.com/
Please try using below custom CSS code to achieve this.
.sh-image-gallery-item{ bottom: 0; transition: 0.3s all ease-in-out; position: relative; } .sh-image-gallery-item:hover{ bottom: -4px; }
Thanks guys
yes that makes the ‘on hover’ work however when clicked the gallery images no longer open up in the lightbox?
Is there a way to make this work please.
Thanks and regards
D.
yes that makes the โon hoverโ work however when clicked the gallery images no longer open up in the lightbox?
Do you mean it was working earlier?
If yes then could you please revert the changes that you made on your site which caused it not to work?