You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi ,
I need left swipe animation on left button click and right swipe animation on right button click like tinder or any other app. Is it possible with this plugin ?
I've also been searching for a solution to this.
I can see that there's a card.throwOut function in the Card.js module, however trying to target it from a button seems to be difficult. I see there is a closed issue from a couple of years ago where someone found the solution but didn't share it.
Activity
AaronLavers commentedon Jun 21, 2019
I've also been searching for a solution to this.
I can see that there's a card.throwOut function in the Card.js module, however trying to target it from a button seems to be difficult. I see there is a closed issue from a couple of years ago where someone found the solution but didn't share it.
varnguyen commentedon Jul 29, 2019
@ Anujmoglix
I think this is what you need but for it to move smoothly like I don't know.
const firstNativeElement = this.swingCards.first.getNativeElement();// Right click
this.swingStack.stack.getCard(firstNativeElement).throwOut(-1, 0);// Left click
this.swingStack.stack.getCard(nativeElementFirst).throwOut(1, 0);jayseb11 commentedon Apr 28, 2020
Found a solution that works reasonably well: