Swipe on component to change state


I’ve tried using drag and swipe in figma for this and i can’t get it to work. The goal is a user is in a page with list of cards and they have to select multiple cards. When user swipes left the card changes state and becomes selected and if they swipe left again on a select card it unselects them. When they swipe right it navigates into that cards page to show more details about the info within that card.

I can not get the cards to swipe out and then have that snap back filling with the card being selected. How do i do that?

Sorry for the noob question but i’ve sadly been on this for 2 days.