Rotate an object but do not rotate its alpha image texture mask
Change texture coordinate to "Object". Then Change Extension from "repeat" to "clip". And adjust location and scale like in the image below. Now Z rotation works like you need.