Tagged: image hover
Hi there,
I would like to assign to all images placed via the image holder (advanced layout) to appear in black and white site side, and on hover become colour, is this possible?
Thanks in advance. Silvio
Hi silviouk!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
#main img { filter: grayscale(100%);
-webkit-filter: grayscale(100%);
filter: gray;
-webkit-transition: all .6s ease; }
#main img:hover { filter: grayscale(0%);
-webkit-filter: grayscale(0%);
filter: none; }
.image-overlay { display: none !important; }
Best regards,
Yigit
Hey, thanks. This only seemed to work on Opera. I tried all other browsers, emptied caches etc, but no joy. Any ideas?
Hi!
Can you post the link to your website? I tried it on my local installation and it does work fine for me
Best regards,
Yigit
Hey!
Thank you for using the theme!
Please add this on Quick CSS or custom.css instead:
div.avia-image-container div a img {
filter: grayscale(100%);
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
div.avia-image-container:hover div a img {
filter: grayscale(0%);
-webkit-filter: grayscale(0%);
filter: grayscale(0%);
}
Regards,
Ismael