add transition to cards