add flip animation to cards