Making things flip around like the card at livenjeans.com?

Hi guys, i know this is done in 3d AE but I’m having trouble doing anything remotely close to this card flip. Can anyone point me in the right direction of how to do something like that?