Gradient mask

I want to make a gradient maks with a 0% aplha on one side and >0% on the other. But somehow it’s not working and all the shape is being visible, how to fix that??