Add a Mask in CSS | thiscodeWorks

PHOTO EMBED

Wed Feb 23 2022 17:07:00 GMT+0000 (Coordinated Universal Time)

Saved by @shawna

img {
  mask-image: url(‘mask.png’) linear-gradient(-45deg,
                        rgba(0,0,0,1) 20%, rgba(0,0,0,0) 50%);
  mask-image: url(#masking); /*referencing to the element generated and defined in SVG code*/
} 
content_copyCOPY

https://www.thiscodeworks.com/add-a-mask-in-css/5c2915db64936a00141e1bff