Home › Forums › Basel support forum › Grayscale on my homepage when un-hover
Grayscale on my homepage when un-hover
- This topic has 16 replies, 2 voices, and was last updated 7 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
September 11, 2017 at 9:09 am #19142
joycelohParticipantHi,
Can you help me write the CSS code, how to make the homepage grayscale when it is loaded?
Upon users hover over the image then it will show colours.Thanks!
September 11, 2017 at 11:53 am #19148
Artem TemosKeymasterHi,
Sorry, but we don’t understand what do you mean. Could you please provide us some example?
Regards
September 11, 2017 at 11:56 am #19149
joycelohParticipantHi,
Can you look at this example?
http://www.qriosity.com.sgWhen it is hover over then the colour appears.
Thank you!
September 11, 2017 at 12:08 pm #19155
Artem TemosKeymasterWe can’t see the content on your website because of password protection.
September 11, 2017 at 1:11 pm #19158
joycelohParticipantSorry, password is below
September 11, 2017 at 3:27 pm #19173
Artem TemosKeymasterTry to add the following code snippet to the Custom CSS area in Theme Settings to do this
.promo-banner .banner-image, .product-grid-item .product-element-top img { filter: grayscale(100%) opacity(0.99); -webkit-filter: grayscale(100%) opacity(0.99); -moz-filter: grayscale(100%) opacity(0.99); -o-filter: grayscale(100%) opacity(0.99); -ms-filter: grayscale(100%) opacity(0.99); transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out; } .promo-banner:hover .banner-image, .product-grid-item:hover .product-element-top img { filter: grayscale(0) opacity(1); -webkit-filter: grayscale(0) opacity(1); -moz-filter: grayscale(0) opacity(1); -o-filter: grayscale(0) opacity(1); -ms-filter: grayscale(0) opacity(1); }
September 13, 2017 at 5:31 am #19256
joycelohParticipantHi,
I have applied the CSS code.
1) the banner was not black and white
2) can the buttons be black and white as well?Kindly advise.
Thank you!
September 13, 2017 at 6:30 am #19259
Artem TemosKeymasterHi,
1. Banners are black and white now.
2. The color for that button is set for you in the source code so you can change it there https://gyazo.com/6bf927d8f891100a21684d98044cceb6
Regards
September 13, 2017 at 7:36 am #19260
joycelohParticipantHi,
Is there any screenshot that I can see from your screen?
The banner is still with colours, the TO NEW is still in Teal
kindly let me know if I seen wronglySeptember 13, 2017 at 7:45 am #19262
Artem TemosKeymasterHere is a screenshot https://gyazo.com/eb12bfb9003fbc18ec7422e75172074b
September 13, 2017 at 8:10 am #19266
joycelohParticipantapologies, I meant the slider on top
September 13, 2017 at 8:31 am #19271
Artem TemosKeymasterUse this also
.wpb_revslider_element .tp-bgimg { filter: grayscale(100%) opacity(0.99); -webkit-filter: grayscale(100%) opacity(0.99); -moz-filter: grayscale(100%) opacity(0.99); -o-filter: grayscale(100%) opacity(0.99); -ms-filter: grayscale(100%) opacity(0.99); transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out; } .wpb_revslider_element:hover .tp-bgimg { filter: grayscale(0) opacity(1); -webkit-filter: grayscale(0) opacity(1); -moz-filter: grayscale(0) opacity(1); -o-filter: grayscale(0) opacity(1); -ms-filter: grayscale(0) opacity(1); }
September 14, 2017 at 2:45 am #19340
joycelohParticipantit works, thanks!
September 14, 2017 at 3:04 am #19341
joycelohParticipantHi,
How about this page? link below
can l make the image or the moving icons into greyscale and hover over then the colour appears?
September 14, 2017 at 6:25 am #19351
Artem TemosKeymasterUse this also
.wpb_revslider_element .tp-caption img { filter: grayscale(100%) opacity(0.99); -webkit-filter: grayscale(100%) opacity(0.99); -moz-filter: grayscale(100%) opacity(0.99); -o-filter: grayscale(100%) opacity(0.99); -ms-filter: grayscale(100%) opacity(0.99); transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out; } .wpb_revslider_element .tp-caption:hover img { filter: grayscale(0) opacity(1); -webkit-filter: grayscale(0) opacity(1); -moz-filter: grayscale(0) opacity(1); -o-filter: grayscale(0) opacity(1); -ms-filter: grayscale(0) opacity(1); }
September 14, 2017 at 6:27 am #19352
joycelohParticipantworks. thanks!
September 14, 2017 at 6:36 am #19358
Artem TemosKeymasterYou are welcome!
-
AuthorPosts
The topic ‘Grayscale on my homepage when un-hover’ is closed to new replies.
- You must be logged in to create new topics. Login / Register