If affiliate swipes to the card, we want the fresh credit to check out the course of the swipe

If affiliate swipes to the card, we want the fresh credit to check out the course of the swipe

We could generally simply miss the app-tinder-credit right in around, then merely hook new onMatch skills to some handler end up being the i have completed with the newest handleMatch method significantly more than

Why don’t we getting to your onMove means. We are able to just select new swipe and animate this new credit immediately following the brand new swipe has been observed, however, this is not because entertaining and will not browse since sweet/smooth/easy to use. Very, that which we create is customize the transform assets of your own aspects build to modify the fresh new translateX to suit the latest deltaX of movement.

Читать далее