December 27, 2020 02:42 pm GMT
Original Link: https://viewbox.club/tips/06.SVG_ClipPath_vs_Mask.html
clipPath vs. mask
These things are so similar, I find it hard to keep them straight. This is a nice little explanation from viewBox (what a cool name and URL, I hope they keep it up).
The big thing is that clipPath
(the element in SVG, as well as clip-path
in CSS) is vector and when it is applied, whatever you are clipping is either in or out. With a mask, you can also do partial transparency, meaning you can use … Read article “clipPath vs. mask”
The post clipPath vs. mask appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
Original Link: https://viewbox.club/tips/06.SVG_ClipPath_vs_Mask.html
Share this article:
Tweet
View Full Article