Hi, I have a problem with the hover effect on a button and on a product.
When I hover over the button or product, it tilts about 10 degrees to the right.
What could be causing this? I don’t even remember making any changes.
You can check out the button here: https://1049xn-ya.myshopify.com/
And the product here: https://1049xn-ya.myshopify.com/collections/all
Thank you so much for any help.
Tim
Honestly, I don’t know. I haven’t installed any new plugins; I’ve just added some code. Could it be caused by one of the codes?
Or is there a way to fix it with code?
Here’s the code I used for the hover effect on the button:
.button {border: 1px solid black;}.button:hover {color: white; background-color: black; transition: 0.5s;}
(I added this to the custom CSS for the section.)
And here’s the code I used for the hover effect on the product:
.product-card-wrapper .media.media--hover-effect > img + img {
transform: translateX(100%) !important;
}
.card-wrapper:hover .media.media--hover-effect>img+img {
transform: translateX(0%)!important;
}
(I added this to theme.liquid)
Thanks for the feedback!
Tim
Hey, it works for the button, but I’d like to do the same for the product’s appearance.
How can I fix it so that the product is aligned as well?
You can check it out here: https://1049xn-ya.myshopify.com/collections/all
Thanks a lot,
Tim
Can you describe more clearly what you want?