Card Collapse Smoothness

I have a card which can collapse to display content and footer information. How can I make this transition smooth using CSS?