Masking image with motion tween

i would like to create the same desired masking with motion tween effect like on: and

I havent really touched masking because i just use simple motion tweening most of the time.

Though i would really ask for already done examples of this or tuts that refer to the exact mention of what i have said.