This is very common. A Quick
Google Search or a dedicated website like
CodePen search can yield answers quickly for you.
Here is a CodePen search
Card Flip that found many solutions. Here is one of the first results that found a simple solution for you:
CSS Card Flip. Do check out the others or use Google Search to find hundreds of other examples:
Google Search: css card flip