The same way you've handled flipped cards.
When there is a match, add a CSS class of matched to the card.
Now, you can write CSS to style flipped or matched cards any why you'd like. You can use a CSS animation to perform the flip, but I gather you already realize that.
To reset, just:
$('.flipped, .matched').removeClass('flipped matched');