My Css Image Hover Effect Does Not Work In Firefox Or Opera
So I'm using a CSS Image Hover Effect on my Wordpress website that works completely fine in Chrome, however it does not work at all in Firefox or Opera (nothing happens when I mous
Solution 1:
Still there is no Support for CSS filter on firefox, check here
But there is one workaround for grayscale on firefox use this
filter: url("data:image/svg+xml;utf8,<svgxmlns=\'http://www.w3.org/2000/svg\'><filterid=\'grayscale\'><feColorMatrixtype=\'matrix\' values=\'0.33330.33330.3333000.33330.33330.3333000.33330.33330.33330000010\'/></filter></svg>#grayscale");
You can see the working demo here on JSFIDDLE
Solution 2:
I've never used this myself but isn't the problem that you're using a webkit filter which wouldn't be supported by firefox. I've done a quick google and it looks like you need -moz-filter: grayscale(100%); see link below.
http://pixelhunter.me/post/25782670606/css3-grayscale
Not sure if the answer below is better for compatibility with older browsers.
Post a Comment for "My Css Image Hover Effect Does Not Work In Firefox Or Opera"