Mask-image with png-file
I have a problem with mask-image: I want to use a png (or svg) as a clipping-mask on an image, so the image is shown in a certain shape. I found several examples online of how to do that, but refer now to this one: https://web.dev/css-masking/. When I use the png the author used in their example, it works. However, if I use my own png (or svg), it does not. I made sure the image is reduced to a white fill and a transparent part, just as the one in the example. I also just changed the URL, nothing else. However, the clipped image is not visible. I know that it is possible to use the SVG in HTML
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.