Are css masks supported in Firefox?

后端 未结 5 1470
我在风中等你
我在风中等你 2021-01-22 22:29

I read somewhere that css masks can be used in Firefox with svg files, but i can\'t make it work... Its working flawless in chrome and safari but i had no luck with firefox.

相关标签:
5条回答
  • 2021-01-22 22:58

    Was searching for css mask found this tutorial here, may help you. Showed a different method and it works fine with Mozilla
    http://thenittygritty.co/css-masking

    Example- http://www.der-schepp.de/css-masking/mouse.html

    0 讨论(0)
  • 2021-01-22 22:59

    This is how you do it in Firefox. You apply SVG clipPaths and masks to html content. It's not the same syntax as webkit css masks but it can achieve the same effect.

    0 讨论(0)
  • 2021-01-22 23:00

    There is this jquery pluggin, I end up choosing this solution, beacuse it is also cross-browser.

    http://almogbaku.github.io/imageMask/

    0 讨论(0)
  • 2021-01-22 23:01

    https://developer.mozilla.org/en-US/docs/CSS/mask

    0 讨论(0)
  • 2021-01-22 23:06

    EDIT: As of Firefox 54 CSS masks should be supported according to http://caniuse.com/#feat=css-masks

    It is not supported according to http://caniuse.com/#feat=css-masks

    0 讨论(0)
提交回复
热议问题