For this tutorial, you are going to need your actual image and the mask you want to use. I have mine prepared below:
In the css for your image, write this:
.test{
mask-image: url("URL-TO-IMAGE-MASK-HERE");
mask-size: contain;
}
(replace URL-TO-IMAGE-MASK-HERE with the path to your image mask)
Results!!: