Creating a Card Flip transition, with links on the backside of the card

I was having the same problem where the card flip was not at all smooth. Putting one div inside another worked for me too. Also, for anyone else who needs help implementing this, here are two screenshots on my setup looks.