I have an element which I want to mask only at the end of the element. I managed to write some code to mask the end of the element, but the rest of the element is now also masked. I want to change the mask so that all off the element to the left of the mask is still visible.
.masked {
width: 300px;
height: 30px;
background-color: hotpink;
mask-image: linear-gradient(to right, black, transparent);
mask-size: 30px;
mask-repeat: no-repeat;
mask-position: right;
}
<div class="masked"></div>