Move opacity mask

How could I make a material that allows a moveable opacity mask. I watched the youtube tutorial on location based opacity mask but I wanted to use a texture instead of a sphere.