Animate card to move up and down

I want to add gesture-based animation to a card so it moves up and down but the only example I can find is of card moving side to side.
So far what I have is what is in the ionic framework docs, here.