Hello!
I am using grayscale css on a background image hover in a column, but want to exclude button from this hover effect, so that the button (or anything else on top of the column background image) is not grayed out too.
Here is the code I am using:
.grayscale {
transition: filter 0.45s cubic-bezier(0.3, 0.4, 0.1, 1), opacity 0.45s cubic-bezier(0.3, 0.4, 0.1, 1);
-webkit-filter: grayscale(0%);
filter: brightness(100%);
opacity: 1;
}
.grayscale:hover {
-webkit-filter: grayscale(100%);
filter: brightness(55%);
opacity: 0.80;
}
I did find this relevant conversation (https://theme.co/apex/forum/t/target-column-background-image-css-only/47190/3), but that solution did not work for me.
Thanks in advance!