animate the flipping of the card