Card rotation variant problem

Hi, I’m new to Figma and have been making a budgeting app. For the wallet section of my app I wanted it to be almost like apple pay whereby when you select a card or rotate it to the next the previous card falls back into the deck. However I have no idea how to do this and no youtube video or google search has helped me with this problem.

@David_Cardew I have this Credit Card example I put together showing how you can use click interactions + smart animate to animate the cards moving around. You could then add arrows to the left or right of the main card, that on click would navigate to the next or previous card.

View File →
View Prototype →

1 Like

Thank you so incredibly much, this is actually perfect. Sometimes the solution is so simple and I just over complicate things.

Again thank you!

1 Like

Glad this helped @David_Cardew! I turned this into a community file so others can get access to it as well. But I’ve also added drag interactions to the cards. So on a mobile device you can either click on or drag on a card to swap it.