Hello
How can i add some opacity color only when i hover over my image.
https://yoga-spirit-mauritius.myshopify.com/
rtewth
Hello
How can i add some opacity color only when i hover over my image.
https://yoga-spirit-mauritius.myshopify.com/
rtewth
Hi,
Need to add hover effect CSS.
Example of CSS
/* Add opacity on hover */
.product-image {
transition: opacity 0.3s ease; /* Smooth transition */
}
.product-image:hover {
opacity: 0.7; /* Adjust opacity level as needed */
}
.product-image = actual image class or ID
nothing happened
I also want the opacity to be a different color
suggestion - you can go for paid shopify developer to solve this issue
Hi @TBS2023
Check this one.
.background-none .multicolumn-card__image-wrapper {
position: relative;
}
.background-none .multicolumn-card__image-wrapper::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 0, 0.5);
opacity: 0;
z-index: 1; /
transition: opacity 0.3s;
}
.background-none .multicolumn-card__image-wrapper:hover::before {
opacity: 1;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
great - thanks