An effect explained :)

Could someone point me in the right direction on how is this effect achieved. I have a similar goal to achieve, with a difference that this paper block is thick and mine isn’t. It’s just a piece of virtual paper, that i would like to animate this way. I searched google and other forums for a tutorial but couldn’t find any. Thanx