Need to make material opacity disapear in a certain way

how to make material opcaity disappear in a certain way, like the image below???