开发者

How can I make a clipping mask on an image in shape of a triangle in CSS or jquery?

开发者 https://www.devze.com 2023-04-03 19:06 出处:网络
The clipping mask has to be in a shape of a triangle facing down and only de right part is showing.The l开发者_如何学编程eft part of the triangle mask is not important.How could I make this?For Webkit

The clipping mask has to be in a shape of a triangle facing down and only de right part is showing.The l开发者_如何学编程eft part of the triangle mask is not important.How could I make this?


For Webkit you can use a clipping mask via CSS. However, this won't work for Firefox or IE or Opera.

For modern browsers, you can use SVG with a clipping path. Here is an example of clipping an image in SVG.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号