How to make a pattern “fixed” in Raphael.js / IE?

前端 未结 4 1639
离开以前
离开以前 2021-02-06 23:03

I\'m creating a small tool to illustrate the benefits of polarizing lenses. Basically a user will drag the lenses (a Raphael.js path) over a dazzling scene (the CSS background o

4条回答
  •  失恋的感觉
    2021-02-06 23:32

    For all those answers saying IE9 can only handle VML and not SVG. Not true. IE9 has native SVG support, to certain extent. OP have you tried doing this with a clipmask instead of dragging around a fill? My understanding is that changing the position of the clipmask path should correctly "reveal" the correct section of the picture. Hopefully shouldn't be too hard after this to add a static image for the background.

提交回复
热议问题