SVG Image Masking on Firefox

佐手、 提交于 2019-12-10 18:59:02

问题


recently I create hexagon SVG, and I plan to implement it for image masking for firefox. currently its only working for Chrome

http://jsfiddle.net/brokeneye/WKEbw/

I already try to use mask: url but it seems doesn't work.

Solved

Found the solution for this, its working on Firefox, chrome, safari, opera and IE9. Need to define the img on the SVG. the sample code is on this fiddle below

http://jsfiddle.net/brokeneye/ygsKm/


回答1:


Firefox supports what you want to do in a different way. You can use SVG masks with html images to get the same effect there with a different syntax.



来源:https://stackoverflow.com/questions/12698719/svg-image-masking-on-firefox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!