Resize Componet with animation

Hi guys. I want to resize the button or card view with animation like in the video. can you help me please?