How to control opacity gradually in masked material?

OK, so you mean something like this?

That still doesn’t give me the transparency from the original image, unless I’m missing something?