Tagged: x
-
AuthorPosts
-
June 25, 2016 at 10:14 pm #1059720
padmorejordanParticipanthello, i found a custom code within the forum to have the images color go from grey to colored when hover over. the issue im having is the same images do not appear at all when the website is viewed in firefox. is there a way to change this?
http://padmorejordan.com/portfolio/June 26, 2016 at 12:31 am #1059789
ChristopherModeratorHi there,
Please update your code to :
.my-image:hover { -webkit-filter: grayscale(0); filter: grayscale(0); filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale"); } .my-image { -webkit-filter: grayscale(1); filter: grayscale(1); border: 2px solid #FFFFFF; transition: all 0.2s ease-in-out; filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ }Hope it helps.
June 26, 2016 at 10:00 pm #1060777
padmorejordanParticipanti made the change and it does not seem to take effect
June 26, 2016 at 10:57 pm #1060822
RadModeratorHi there,
I checked and it’s working. What browser and version you’re testing it on? It works on both chrome and firefox on my end.
Please clear your browser cache before testing.
Thanks!
June 27, 2016 at 9:00 pm #1062592
padmorejordanParticipantit only seems to work on chrome from my computer and any ive tested it on. ive tried it on firefox and internet explorer and i have the latest versions of all 3
June 28, 2016 at 1:29 am #1062769
ChristopherModeratorHi there,
Please update your code to:
.my-image:hover { -webkit-filter: grayscale(0); filter: grayscale(0); filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale"); -moz-filter: grayscale(0); -ms-filter: grayscale(0); -o-filter: grayscale(0); } .my-image { -webkit-filter: grayscale(1); filter: grayscale(1); border: 2px solid #FFFFFF; transition: all 0.2s ease-in-out; filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: gray; /* IE 6-9 */ }Clear cache on your browsers and check again.
Thanks.
June 28, 2016 at 5:28 pm #1063944
padmorejordanParticipanti tried this one aswell and it still doesnt work on firefox or internet explorer. although, the images now show on internet explorer, they still dont go from grey to color, and the images just wont show on firefox
June 29, 2016 at 1:09 am #1064364
RupokMemberHi there,
Thanks for writing back. The suggested code is for all browsers. It’s working on Firefox fine on my end and I can’t guarantee for IE.
Cheers!
June 29, 2016 at 8:15 am #1064811
padmorejordanParticipantim sorry, it seems to work on my work computer for firefox and chrome. no fade for IE but i can live with that. im sorry for the inconvinience.
June 29, 2016 at 8:49 am #1064877
FriechModeratorCool, please feel free to get in touch with us regarding any further queries about the X|Theme and Cornerstone.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1059720 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
